From 4e0b2bbc578f8729cf43939acb36e8db02ed8825 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Tue, 31 Jul 2007 14:48:29 +0200 Subject: [PATCH] rev-list --bisect: fix allocation of "int*" instead of "int". Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- builtin-rev-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-rev-list.c b/builtin-rev-list.c index ebf53f594..2eb919f39 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) { -- 2.26.2