summaryrefslogtreecommitdiff
path: root/fitz/base_getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/base_getopt.c')
-rw-r--r--fitz/base_getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/base_getopt.c b/fitz/base_getopt.c
index 2c198ba1..2a6e5ac4 100644
--- a/fitz/base_getopt.c
+++ b/fitz/base_getopt.c
@@ -25,7 +25,7 @@ getopt(int argc, char *argv[], char *optstring)
optarg = NULL;
- if (scan == NULL || *scan == '\0') {
+ if (!scan || *scan == '\0') {
if (optind == 0)
optind++;
@@ -43,7 +43,7 @@ getopt(int argc, char *argv[], char *optstring)
c = *scan++;
place = strchr(optstring, c);
- if (place == NULL || c == ':') {
+ if (!place || c == ':') {
fprintf(stderr, "%s: unknown option -%c\n", argv[0], c);
return '?';
}