diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-18 07:47:26 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-18 07:47:26 +0000 |
commit | e15a67f910a71cd2e80c76aa896f3e331a856736 (patch) | |
tree | 0c71d8c62e5d492606c2e3d4989b7931e96418bc | |
parent | 048481b9dc03d74ad8acf4c952c3883e2c1cacdf (diff) | |
download | FreeBSD-src-e15a67f910a71cd2e80c76aa896f3e331a856736.zip FreeBSD-src-e15a67f910a71cd2e80c76aa896f3e331a856736.tar.gz |
Use NULL instead of 0 for pointers.
malloc will return NULL if it cannot allocate memory.
MFC after: 2 weeks.
-rw-r--r-- | sbin/fsdb/fsdbutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c index ba0b64e..265a096 100644 --- a/sbin/fsdb/fsdbutil.c +++ b/sbin/fsdb/fsdbutil.c @@ -310,7 +310,7 @@ printblocks(ino_t inum, union dinode *dp) return; bufp = malloc((unsigned int)sblock.fs_bsize); - if (bufp == 0) + if (bufp == NULL) errx(EEXIT, "cannot allocate indirect block buffer"); printf("Indirect blocks:\n"); for (i = 0; i < NIADDR; i++) |