Browse Source

die() on calloc failure

thanks Markus Teich and David!
master
Hiltjo Posthuma 5 years ago
parent
commit
a280bdad1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      util.c

+ 1
- 1
util.c View File

@ -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