summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-10-11 14:18:32 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-11 14:18:32 -0700
commita813b19190a75e44b6ebd1ea5317ef5ed914cde0 (patch)
tree57781b3d45acf013b4e1b506ad324572f0c82e42 /commit.c
parentMerge branch 'dt/mailinfo' into maint (diff)
parentuse COPY_ARRAY (diff)
downloadtgif-a813b19190a75e44b6ebd1ea5317ef5ed914cde0.tar.xz
Merge branch 'rs/copy-array' into maint
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 ba6dee37aa..aada266f9a 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];