diff options
Diffstat (limited to 'src/uniq.c')
-rw-r--r-- | src/uniq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uniq.c b/src/uniq.c index 2fae7a53d..21f4ab07a 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -472,7 +472,7 @@ main (int argc, char **argv) } } - if (argc - optind >= 2 && !STREQ (argv[optind - 1], "--")) + if (optind < argc && !STREQ (argv[optind - 1], "--")) { /* Interpret non-option arguments with leading `+' only if we haven't seen `--'. */ |