summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-11-04 19:45:08 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-11-04 19:45:08 +0100
commitca7978c59bb30a095cf8279944d3ec78361afd30 (patch)
treee0a513c47d0546b6a3a559895628b3b37d66b18e
parent8185d5eacbcd3fc2420e752e8175c05b9a35b9b3 (diff)
die() on calloc failure
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
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;
}