diff options
-rw-r--r-- | cat/bsdcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cat/bsdcat.c b/cat/bsdcat.c index 46eadfa0..e40f4fa3 100644 --- a/cat/bsdcat.c +++ b/cat/bsdcat.c @@ -93,7 +93,7 @@ main(int argc, char **argv) switch (c) { case '-': if (strcmp(argv[optind], "--version") == 0) version(); - if (c == '-' && strcmp(argv[optind], "--help") != 0) + if (strcmp(argv[optind], "--help") != 0) lafe_warnc(0, "invalid option -- '%s'", argv[optind]); default: usage(); |