diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-19 02:00:48 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-19 02:00:48 +0000 |
commit | eccc897bf6bf6438652c5d5fa63f980e3d5140d6 (patch) | |
tree | bab4d531f206f014117533153f4ebecaf7ffd5d2 /sbin/restore | |
parent | 542e67e53d17c3e11b0340a2e73e4bb37545ce2d (diff) | |
download | FreeBSD-src-eccc897bf6bf6438652c5d5fa63f980e3d5140d6.zip FreeBSD-src-eccc897bf6bf6438652c5d5fa63f980e3d5140d6.tar.gz |
malloc will return NULL if it cannot allocate memory.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/restore')
-rw-r--r-- | sbin/restore/dirs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c index 7b308cd..8716de9 100644 --- a/sbin/restore/dirs.c +++ b/sbin/restore/dirs.c @@ -598,7 +598,7 @@ setdirmodes(int flags) if (bufsize < node.extsize) { if (bufsize > 0) free(buf); - if ((buf = malloc(node.extsize)) != 0) { + if ((buf = malloc(node.extsize)) != NULL) { bufsize = node.extsize; } else { bufsize = 0; |