diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:14:33 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:14:33 +0900 |
commit | 701899296ca7dde6ba6c7e6fc54d79ab4a8df001 (patch) | |
tree | 29118e47a825de541edae8439fadabb5ad34131e /commit.c | |
parent | b90fc8d52b357f981b94afdaba1bafb545daf1dc (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |