Return to lib.c CVS log | Up to [local] / src / usr.bin / awk |
version 1.16, 2005/11/23 02:43:45 | version 1.17, 2007/09/02 15:19:31 | ||
---|---|---|---|
|
|
||
{ | { | ||
record = (char *) malloc(n); | record = (char *) malloc(n); | ||
fields = (char *) malloc(n); | fields = (char *) malloc(n); | ||
fldtab = (Cell **) malloc((nfields+1) * sizeof(Cell *)); | fldtab = (Cell **) calloc((nfields+1), sizeof(Cell *)); | ||
if (record == NULL || fields == NULL || fldtab == NULL) | if (record == NULL || fields == NULL || fldtab == NULL) | ||
FATAL("out of space for $0 and fields"); | FATAL("out of space for $0 and fields"); | ||