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

Diff for /src/usr.bin/yacc/mkpar.c between version 1.14 and 1.15

version 1.14, 2009/10/27 23:59:50 version 1.15, 2012/03/03 19:15:00
Line 213 
Line 213 
     int i;      int i;
     action *p;      action *p;
   
     rules_used = (short *) MALLOC(nrules*sizeof(short));      rules_used = CALLOC(nrules, sizeof(short));
     if (rules_used == 0) no_space();      if (rules_used == NULL) no_space();
   
     for (i = 0; i < nrules; ++i)  
         rules_used[i] = 0;  
   
     for (i = 0; i < nstates; ++i)      for (i = 0; i < nstates; ++i)
     {      {

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15