summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2013-01-30 20:33:23 +0000
committerKarel Zak <kzak@redhat.com>2013-02-06 11:51:15 +0100
commitf8bd089b1da79ce0cd4f228e371aa2089561eaa5 (patch)
treeb88fa2ac1da14cf1c367654c4d3ede101389b7ff /lib
parent123ddced4333733bfe42ebc45806e91cff6f8319 (diff)
downloadutil-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.gz
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 5611ab38..d9f1f57d 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