From a280bdad1f16943a70eaff086852d3b11043b060 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 5 Nov 2016 11:36:42 +0100 Subject: die() on calloc failure thanks Markus Teich and David! --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index b0612af..fe044fc 100644 --- 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; } -- cgit v1.2.3-54-g00ecf