die() on calloc failure

thanks Markus Teich and David!
new_dwm
Hiltjo Posthuma 8 years ago
parent ab9571bbc5
commit 24849acada

@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
void *p;
if (!(p = calloc(nmemb, size)))
perror(NULL);
die("calloc:");
return p;
}

Loading…
Cancel
Save