malloc will return NULL if it cannot allocate memory.
MFC after: 2 weeks.
This commit is contained in:
parent
deaa3563c8
commit
e63ce3de7f
@ -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