From 4e0b2bbc578f8729cf43939acb36e8db02ed8825 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Tue, 31 Jul 2007 14:48:29 +0200 Subject: rev-list --bisect: fix allocation of "int*" instead of "int". Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano diff --git a/builtin-rev-list.c b/builtin-rev-list.c index ebf53f5..2eb919f 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) { -- cgit v0.10.2-6-g49f6