This commit is contained in:
dockes 2009-11-18 14:27:01 +00:00
parent b3405c3f44
commit d719b1622b

View File

@ -1003,7 +1003,7 @@ allocmem(void *cp, /* The array to grow. may be NULL */
}
int inc = (*np > maxinc) ? : *np;
if (cp = realloc(cp, (*np + inc) * sz))
if ((cp = realloc(cp, (*np + inc) * sz)) != 0)
*np += inc;
return cp;
}