diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-11-05 11:34:52 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-11-05 11:34:52 +0100 |
commit | 24849acada79977cea6acd2d8741d2bd00891ff6 (patch) | |
tree | 9b5f6f5cc5dafe5786f54bbd21c4cc29824448e8 /util.c | |
parent | ab9571bbc5f6fb04fd583238a665a7e830fc1397 (diff) | |
download | dwm-24849acada79977cea6acd2d8741d2bd00891ff6.tar.gz |
die() on calloc failure
thanks Markus Teich and David!
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size) void *p; if (!(p = calloc(nmemb, size))) - perror(NULL); + die("calloc:"); return p; } |