Merge branch 'rs/realloc-array'

Code cleanup.

* rs/realloc-array:
  use REALLOC_ARRAY for changing the allocation size of arrays
  add macro REALLOC_ARRAY
This commit is contained in:
Junio C Hamano
2014-09-26 14:39:45 -07:00
28 changed files with 45 additions and 70 deletions

View File

@ -482,7 +482,7 @@ extern int daemonize(void);
alloc = (nr); \
else \
alloc = alloc_nr(alloc); \
x = xrealloc((x), alloc * sizeof(*(x))); \
REALLOC_ARRAY(x, alloc); \
} \
} while (0)