die() on calloc failure

This commit is contained in:
Markus Teich 2016-11-04 19:45:08 +01:00
parent 8185d5eacb
commit ca7978c59b

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