From: Jim Meyering Date: Sat, 25 Aug 2001 13:50:41 +0000 (+0000) Subject: (main): Don't report an error when given the valid options `+3 -d'. X-Git-Tag: TEXTUTILS-2_0_15~326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b27c41df419f829c801c4576b0b58caeda286d8a;p=thirdparty%2Fcoreutils.git (main): Don't report an error when given the valid options `+3 -d'. --- 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 `--'. */