(main): Don't report an error when given the valid options `+3 -d'.
authorJim Meyering <jim@meyering.net>
Sat, 25 Aug 2001 13:50:41 +0000 (13:50 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 25 Aug 2001 13:50:41 +0000 (13:50 +0000)
src/uniq.c

index 2fae7a53d688734a86fd17e6a11b7db29bb8ef02..21f4ab07aeda9f50c73a7cf82606e71ce0269be8 100644 (file)
@@ -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 `--'.  */