die() on calloc failure

master
Markus Teich 7 years ago
parent 8185d5eacb
commit ca7978c59b

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

Loading…
Cancel
Save