malloc will return NULL if it cannot allocate memory.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-19 02:00:48 +00:00
parent deaa3563c8
commit e63ce3de7f

View File

@ -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;