die() on calloc failure
thanks Markus Teich and David!
This commit is contained in:
parent
aee768e103
commit
b3a715ceb2
@ -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 New Issue
Block a user