Skip to content

Commit

Permalink
die() on calloc failure
Browse files Browse the repository at this point in the history
thanks Markus Teich and David!
  • Loading branch information
hiltjo committed Nov 5, 2016
1 parent a9a5c6c commit a280bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
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 a280bda

Please sign in to comment.