diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/getopt.c b/compat/getopt.c index 7c646f6a05..b7adf60e2f 100644 --- a/compat/getopt.c +++ b/compat/getopt.c @@ -53,7 +53,7 @@ static int getopt(int argc, char *argv[], char *opts) return EOF; } optopt = c = argv[optind][sp]; - if (c == ':' || (cp = strchr(opts, c)) == NULL) { + if (c == ':' || !(cp = strchr(opts, c))) { fprintf(stderr, ": illegal option -- %c\n", c); if (argv[optind][++sp] == '\0') { optind++; |