Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
die() on calloc failure
thanks Markus Teich and David!
  • Loading branch information
hiltjo committed Nov 5, 2016
1 parent ab9571b commit 24849ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Expand Up @@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
void *p;

if (!(p = calloc(nmemb, size)))
perror(NULL);
die("calloc:");
return p;
}

Expand Down

0 comments on commit 24849ac

Please sign in to comment.