summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:14:33 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:14:33 +0900
commit701899296ca7dde6ba6c7e6fc54d79ab4a8df001 (patch)
tree29118e47a825de541edae8439fadabb5ad34131e /commit.c
parentb90fc8d52b357f981b94afdaba1bafb545daf1dc (diff)
downloadgit-701899296ca7dde6ba6c7e6fc54d79ab4a8df001.tar.gz
git-701899296ca7dde6ba6c7e6fc54d79ab4a8df001.tar.bz2
git-701899296ca7dde6ba6c7e6fc54d79ab4a8df001.zip
Imported Upstream version 2.0.3upstream/2.0.3
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 ebd7ad84..4ff8077d 100644
--- a/commit.c
+++ b/commit.c
@@ -1089,7 +1089,7 @@ struct commit_list *reduce_heads(struct commit_list *heads)
p->item->object.flags |= STALE;
num_head++;
}
- array = xcalloc(sizeof(*array), num_head);
+ array = xcalloc(num_head, sizeof(*array));
for (p = heads, i = 0; p; p = p->next) {
if (p->item->object.flags & STALE) {
array[i++] = p->item;