aboutsummaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-10-03 13:30:33 -0700
committerJunio C Hamano <gitster@pobox.com>2016-10-03 13:30:33 -0700
commitb1f0a856605981363053941b8210f3cc9389607a (patch)
tree9de4bc7cc285925913c219edd4536985cc0cc256 /commit.c
parent3ef7618e616e023cf04180e30d77c9fa5310f964 (diff)
parent45ccef87b3cc0ab09ec5fd1186aa0b33298ee8d4 (diff)
downloadgit-b1f0a856605981363053941b8210f3cc9389607a.tar.gz
git-b1f0a856605981363053941b8210f3cc9389607a.tar.xz
Merge branch 'rs/copy-array'
Code cleanup. * rs/copy-array: use COPY_ARRAY add COPY_ARRAY
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 8eb17075f..856fd4aee 100644
--- a/commit.c
+++ b/commit.c
@@ -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];