diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c index 04d2ff22285..603daad8c17 100644 --- a/sbin/mount/getmntopts.c +++ b/sbin/mount/getmntopts.c @@ -81,7 +81,7 @@ getmntopts(options, m0, flagp, altflagp) * ignore the assignment as it's handled elsewhere */ p = strchr(opt, '='); - if (p) + if (p != NULL) *++p = '\0'; /* Scan option table. */ diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 75e72bf64bb..7806ecc1f20 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -602,7 +602,7 @@ mangle(options, argcp, argv) if (*p == '-') { argv[argc++] = p; p = strchr(p, '='); - if (p) { + if (p != NULL) { *p = '\0'; argv[argc++] = p+1; }