Ver código fonte

die() on calloc failure

thanks Markus Teich and David!
master
Hiltjo Posthuma 7 anos atrás
pai
commit
a280bdad1f
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      util.c

+ 1
- 1
util.c Ver arquivo

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

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



Carregando…
Cancelar
Salvar