diff options
author | Jim Meyering <jim@meyering.net> | 2001-08-25 13:50:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-08-25 13:50:41 +0000 |
commit | b27c41df419f829c801c4576b0b58caeda286d8a (patch) | |
tree | 87413f1f73738455110592f83f6b7038ddde74dc | |
parent | a1ec1c4af34cb0fb32e8658a539262698ea23576 (diff) | |
download | coreutils-b27c41df419f829c801c4576b0b58caeda286d8a.tar.xz |
(main): Don't report an error when given the valid options `+3 -d'.
-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 `--'. */ |