summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-11-05 11:34:52 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-11-05 11:34:52 +0100
commit24849acada79977cea6acd2d8741d2bd00891ff6 (patch)
tree9b5f6f5cc5dafe5786f54bbd21c4cc29824448e8
parentdie() consistency: always add newline (diff)
downloaddwm-24849acada79977cea6acd2d8741d2bd00891ff6.tar.gz
dwm-24849acada79977cea6acd2d8741d2bd00891ff6.zip
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 b0612af..fe044fc 100644
--- a/util.c
+++ b/util.c
@@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
12 void *p; 12 void *p;
13 13
14 if (!(p = calloc(nmemb, size))) 14 if (!(p = calloc(nmemb, size)))
15 perror(NULL); 15 die("calloc:");
16 return p; 16 return p;
17} 17}
18 18