pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a5c6c
)
die() on calloc failure
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 5 Nov 2016 10:36:42 +0000
(11:36 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 5 Nov 2016 10:36:42 +0000
(11:36 +0100)
thanks Markus Teich and David!
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index
b0612af
..
fe044fc
100644
(file)
--- 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;
}