mirror of
https://git.suckless.org/dwm
synced 2024-12-26 10:56:31 +00:00
die() on calloc failure
thanks Markus Teich and David!
This commit is contained in:
parent
ab9571bbc5
commit
24849acada
1 changed files with 1 additions and 1 deletions
2
util.c
2
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue