diff options
Diffstat (limited to 'src/misc/getopt_long.c')
-rw-r--r-- | src/misc/getopt_long.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/misc/getopt_long.c b/src/misc/getopt_long.c index c3593716..df2083bb 100644 --- a/src/misc/getopt_long.c +++ b/src/misc/getopt_long.c @@ -31,9 +31,7 @@ static int __getopt_long(int argc, char *const *argv, const char *optstring, con int i; for (i=optind; ; i++) { if (i >= argc || !argv[i]) return -1; - if (argv[i][0] != '-') continue; - if (!argv[i][1]) continue; - break; + if (argv[i][0] == '-' && argv[i][1]) break; } optind = i; } |