Parcourir la source

die() on calloc failure

thanks Markus Teich and David!
master
Hiltjo Posthuma il y a 7 ans
Parent
révision
a280bdad1f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      util.c

+ 1
- 1
util.c Voir le fichier

@@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
void *p;

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



Chargement…
Annuler
Enregistrer