diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-07-22 19:25:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-22 19:25:17 +0200 |
commit | cfececfe1ff1554783030a6f08b431ad50263800 (patch) | |
tree | 8b034605baeeb0f2d867caa6e7270f604bce9247 /commit.c | |
parent | Merge branch 'cb/byte-order' into maint (diff) | |
parent | transport-helper.c: rearrange xcalloc arguments (diff) | |
download | git-cfececfe1ff1554783030a6f08b431ad50263800.tar.xz git-cfececfe1ff1554783030a6f08b431ad50263800.zip |
Merge branch 'bg/xcalloc-nmemb-then-size' into maint
* bg/xcalloc-nmemb-then-size:
transport-helper.c: rearrange xcalloc arguments
remote.c: rearrange xcalloc arguments
reflog-walk.c: rearrange xcalloc arguments
pack-revindex.c: rearrange xcalloc arguments
notes.c: rearrange xcalloc arguments
imap-send.c: rearrange xcalloc arguments
http-push.c: rearrange xcalloc arguments
diff.c: rearrange xcalloc arguments
config.c: rearrange xcalloc arguments
commit.c: rearrange xcalloc arguments
builtin/remote.c: rearrange xcalloc arguments
builtin/ls-remote.c: rearrange xcalloc arguments
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; |