summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2007-07-31 14:48:29 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-31 21:07:39 -0700
commit4e0b2bbc578f8729cf43939acb36e8db02ed8825 (patch)
tree762a3650689b6c56c9031cc9775acbd086970a3d /builtin-rev-list.c
parent281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e (diff)
downloadgit-4e0b2bbc578f8729cf43939acb36e8db02ed8825.tar.gz
rev-list --bisect: fix allocation of "int*" instead of "int".
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index ebf53f5944..2eb919f39c 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -310,7 +310,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
show_list("bisection 2 sorted", 0, nr, list);
*all = nr;
- weights = xcalloc(on_list, sizeof(int*));
+ weights = xcalloc(on_list, sizeof(*weights));
counted = 0;
for (n = 0, p = list; p; p = p->next) {