aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 01:01:22 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 01:01:22 +0000
commit0b410d9c570e4c5af73425d136042e0682988df7 (patch)
treec9966117859e680e341b1e47819c729a5d271d42 /sbin
parent8e58be03e7bcfffdbcd19aa8f9b124ab4ab55c1e (diff)
downloadsrc-0b410d9c570e4c5af73425d136042e0682988df7.tar.gz
src-0b410d9c570e4c5af73425d136042e0682988df7.zip
Use NULL instead of 0.
malloc will return NULL in case it cannot allocate memory. MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298235
Diffstat (limited to 'sbin')
-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 8a9a378dfc40..2aa0305a6867 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;