Merge branch 'rs/copy-array' into maint

Code cleanup.

* rs/copy-array:
  use COPY_ARRAY
  add COPY_ARRAY
This commit is contained in:
Junio C Hamano
2016-10-11 14:18:32 -07:00
7 changed files with 40 additions and 9 deletions

View File

@ -931,7 +931,7 @@ static int remove_redundant(struct commit **array, int cnt)
}
/* Now collect the result */
memcpy(work, array, sizeof(*array) * cnt);
COPY_ARRAY(work, array, cnt);
for (i = filled = 0; i < cnt; i++)
if (!redundant[i])
array[filled++] = work[i];