summaryrefslogtreecommitdiffstats
path: root/sbin/dump
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-19 01:01:22 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-19 01:01:22 +0000
commita7ef04a9b95476945ee528fb8f958da7a6cf0d9e (patch)
treec9966117859e680e341b1e47819c729a5d271d42 /sbin/dump
parent801d6e7892a15d7d42b3351677e88447fdcf93b2 (diff)
downloadFreeBSD-src-a7ef04a9b95476945ee528fb8f958da7a6cf0d9e.zip
FreeBSD-src-a7ef04a9b95476945ee528fb8f958da7a6cf0d9e.tar.gz
Use NULL instead of 0.
malloc will return NULL in case it cannot allocate memory. MFC after: 2 weeks.
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/traverse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 8a9a378..2aa0305 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -928,7 +928,7 @@ loop:
if (cnt == size)
return;
} else {
- if (tmpbuf == NULL && (tmpbuf = malloc(secsize)) == 0)
+ if (tmpbuf == NULL && (tmpbuf = malloc(secsize)) == NULL)
quit("buffer malloc failed\n");
xfer = 0;
bytes = size;
OpenPOWER on IntegriCloud