summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSami Kerola2013-01-30 21:33:23 +0100
committerKarel Zak2013-02-06 11:51:15 +0100
commitf8bd089b1da79ce0cd4f228e371aa2089561eaa5 (patch)
treeb88fa2ac1da14cf1c367654c4d3ede101389b7ff /lib
parenttextual: fix two misencodings in comments (diff)
downloadkernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.gz
kernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.xz
kernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.zip
a pointer should not be compared to zero [coccinelle]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib')
-rw-r--r--lib/ismounted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ismounted.c b/lib/ismounted.c
index 5611ab385..d9f1f57d0 100644
--- a/lib/ismounted.c
+++ b/lib/ismounted.c
@@ -91,7 +91,7 @@ static int check_mntent_file(const char *mtab_file, const char *file,
}
}
- if (mnt == 0) {
+ if (mnt == NULL) {
#ifndef __GNU__ /* The GNU hurd is broken with respect to stat devices */
/*
* Do an extra check to see if this is the root device. We