From b27c41df419f829c801c4576b0b58caeda286d8a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 25 Aug 2001 13:50:41 +0000 Subject: [PATCH] (main): Don't report an error when given the valid options `+3 -d'. --- src/uniq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uniq.c b/src/uniq.c index 2fae7a53d6..21f4ab07ae 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 `--'. */ -- 2.47.3