summaryrefslogtreecommitdiff
path: root/cat
diff options
context:
space:
mode:
Diffstat (limited to 'cat')
-rw-r--r--cat/bsdcat.c2
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();