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

Diff for /src/usr.bin/make/dump.c between version 1.5 and 1.6

version 1.5, 2013/05/22 12:14:08 version 1.6, 2014/05/18 08:08:50
Line 67 
Line 67 
         unsigned int i, j;          unsigned int i, j;
         void *e;          void *e;
         size_t n = ohash_entries(h);          size_t n = ohash_entries(h);
         void **t = emalloc(sizeof(void *) * (n+1));          void **t = ereallocarray(NULL, n+1, sizeof(void *));
         cmp_offset = h->info.key_offset;          cmp_offset = h->info.key_offset;
   
         for (i = 0, e = ohash_first(h, &j); e != NULL; e = ohash_next(h, &j))          for (i = 0, e = ohash_first(h, &j); e != NULL; e = ohash_next(h, &j))

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6