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

Diff for /src/usr.bin/awk/parse.c between version 1.8 and 1.9

version 1.8, 2020/06/10 21:02:33 version 1.9, 2020/06/10 21:03:36
Line 34 
Line 34 
 {  {
         Node *x;          Node *x;
   
         x = (Node *) malloc(sizeof(Node) + (n-1)*sizeof(Node *));          x = malloc(sizeof(*x) + (n-1) * sizeof(x));
         if (x == NULL)          if (x == NULL)
                 FATAL("out of space in nodealloc");                  FATAL("out of space in nodealloc");
         x->nnext = NULL;          x->nnext = NULL;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9