1
0
Fork 0

die() on calloc failure

thanks Markus Teich and David!
This commit is contained in:
Hiltjo Posthuma 2016-11-05 11:36:42 +01:00
parent a9a5c6cc2d
commit a280bdad1f

2
util.c
View file

@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
void *p;
if (!(p = calloc(nmemb, size)))
perror(NULL);
die("calloc:");
return p;
}