projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1ec1c4
)
(main): Don't report an error when given the valid options `+3 -d'.
author
Jim Meyering
<jim@meyering.net>
Sat, 25 Aug 2001 13:50:41 +0000
(13:50 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 25 Aug 2001 13:50:41 +0000
(13:50 +0000)
src/uniq.c
patch
|
blob
|
history
diff --git
a/src/uniq.c
b/src/uniq.c
index 2fae7a53d688734a86fd17e6a11b7db29bb8ef02..21f4ab07aeda9f50c73a7cf82606e71ce0269be8 100644
(file)
--- 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 `--'. */