diff options
Diffstat (limited to 'src/scanopt.c')
-rw-r--r-- | src/scanopt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scanopt.c b/src/scanopt.c index 04fbdc3..7a91178 100644 --- a/src/scanopt.c +++ b/src/scanopt.c @@ -708,8 +708,7 @@ int scanopt (scanopt_t *svoid, char **arg, int *optindex) /* Look ahead in argv[] to see if there is something * that we can use as an argument (if needed). */ - has_next = s->index + 1 < s->argc - && strcmp ("--", s->argv[s->index + 1]) != 0; + has_next = s->index + 1 < s->argc; optp = s->options + opt_offset; auxp = s->aux + opt_offset; |