summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma2016-11-05 11:34:52 +0100
committerHiltjo Posthuma2016-11-05 11:34:52 +0100
commit33b41476e7a09c953605de995738debddedae313 (patch)
treef8d4a1b47774376851f50eb900d08f21101226f6
parent97afc2c4c0d2ead18e407d46c70e33a497994dc4 (diff)
downloadaur-33b41476e7a09c953605de995738debddedae313.tar.gz
die() on calloc failure
thanks Markus Teich and David!
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index b0612af63c5..fe044fc7b79 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;
}