Return to cache.c CVS log | Up to [local] / src / usr.bin / systat |
version 1.4, 2011/11/29 10:17:52 | version 1.5, 2014/10/08 04:10:04 | ||
---|---|---|---|
|
|
||
if (max == 0) { | if (max == 0) { | ||
sc_store = NULL; | sc_store = NULL; | ||
} else { | } else { | ||
sc_store = malloc(max * sizeof(struct sc_ent)); | sc_store = reallocarray(NULL, max, sizeof(struct sc_ent)); | ||
if (sc_store == NULL) | if (sc_store == NULL) | ||
return (1); | return (1); | ||
} | } |