tdie() on calloc failure - dwm - [fork] customized build of dwm, the dynamic wi… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 24849acada79977cea6acd2d8741d2bd00891ff6 | |
parent ab9571bbc5f6fb04fd583238a665a7e830fc1397 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sat, 5 Nov 2016 11:34:52 +0100 | |
die() on calloc failure | |
tthanks Markus Teich and David! | |
Diffstat: | |
M util.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/util.c b/util.c | |
t@@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size) | |
void *p; | |
if (!(p = calloc(nmemb, size))) | |
- perror(NULL); | |
+ die("calloc:"); | |
return p; | |
} | |