summaryrefslogtreecommitdiffstats
path: root/sbin/mount/getmntopts.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/getmntopts.c')
-rw-r--r--sbin/mount/getmntopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c
index 04d2ff2..603daad 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. */
OpenPOWER on IntegriCloud