Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r--winsup/utils/regtool.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc
index 6954c6556..45263e369 100644
--- a/winsup/utils/regtool.cc
+++ b/winsup/utils/regtool.cc
@@ -47,7 +47,7 @@ static struct option longopts[] =
{NULL, 0, NULL, 0}
};
-static char opts[] = "ehiklmpqsvVK::";
+static char opts[] = "ehiklmpqsvVK:";
int listwhat = 0;
int postfix = 0;
@@ -674,10 +674,7 @@ main (int argc, char **_argv)
print_version ();
exit (0);
case 'K':
- if (!optarg)
- usage ();
- else
- key_sep = *optarg;
+ key_sep = *optarg;
break;
default :
usage ();