commit ca7978c59bb30a095cf8279944d3ec78361afd30 parent 8185d5eacbcd3fc2420e752e8175c05b9a35b9b3 Author: Markus Teich <markus.teich@stusta.mhn.de> Date: Fri, 4 Nov 2016 19:45:08 +0100 die() on calloc failure Diffstat:
M | util.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util.c b/util.c @@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size) void *p; if (!(p = calloc(nmemb, size))) - perror(NULL); + die("calloc:"); return p; }