diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-18 07:47:26 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-18 07:47:26 +0000 |
commit | 7fd35136d92423922eee6352bd24f95f250fb1f0 (patch) | |
tree | 0c71d8c62e5d492606c2e3d4989b7931e96418bc | |
parent | cd5f6a0cc13d3e77f80bc4f0889c4b5691d6dad7 (diff) | |
download | src-7fd35136d92423922eee6352bd24f95f250fb1f0.tar.gz src-7fd35136d92423922eee6352bd24f95f250fb1f0.zip |
Use NULL instead of 0 for pointers.
malloc will return NULL if it cannot allocate memory.
MFC after: 2 weeks.
Notes
Notes:
svn path=/head/; revision=298195
-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 ba0b64e72801..265a0965cbcf 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++) |