[BACK]Return to lib.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / awk

Diff for /src/usr.bin/awk/lib.c between version 1.16 and 1.17

version 1.16, 2005/11/23 02:43:45 version 1.17, 2007/09/02 15:19:31
Line 61 
Line 61 
 {  {
         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");
   

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17