summaryrefslogtreecommitdiffstats
path: root/sbin/dump/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dump/main.c')
-rw-r--r--sbin/dump/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 3ec78fd1..ee18f82 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -340,7 +340,7 @@ main(int argc, char *argv[])
spcl.c_dev[NAMELEN-1]='\0';
spcl.c_filesys[NAMELEN-1]='\0';
- if ((mntpt = getmntpt(disk, &mntflags)) != 0) {
+ if ((mntpt = getmntpt(disk, &mntflags)) != NULL) {
if (mntflags & MNT_RDONLY) {
if (snapdump != 0) {
msg("WARNING: %s\n",
OpenPOWER on IntegriCloud