diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-11-05 11:36:42 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-11-05 11:36:42 +0100 |
commit | a280bdad1f16943a70eaff086852d3b11043b060 (patch) | |
tree | 2bf252af1ed8f39294a7963d29239590a67a8bad | |
parent | add embedding support with -w option (diff) | |
download | dmenu-a280bdad1f16943a70eaff086852d3b11043b060.tar.gz dmenu-a280bdad1f16943a70eaff086852d3b11043b060.tar.bz2 dmenu-a280bdad1f16943a70eaff086852d3b11043b060.zip |
die() on calloc failure
thanks Markus Teich and David!
Diffstat (limited to '')
-rw-r--r-- | util.c | 2 |
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; } |