mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
malloc will return NULL if it cannot allocate memory.
MFC after: 2 weeks.
This commit is contained in:
parent
deaa3563c8
commit
e63ce3de7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298240
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user