Explorar el Código

die() on calloc failure

thanks Markus Teich and David!
master
Hiltjo Posthuma hace 7 años
padre
commit
a280bdad1f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      util.c

+ 1
- 1
util.c Ver fichero

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

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



Cargando…
Cancelar
Guardar