die() on calloc failure

thanks Markus Teich and David!
This commit is contained in:
Hiltjo Posthuma committed 2016-11-05 11:34:52 +01:00
1 parent ab9571bbc5
commit 24849acada
1 file changed
+1 -1
+1 -1
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;
}