From: Christian Couder Date: Tue, 31 Jul 2007 12:48:29 +0000 (+0200) Subject: rev-list --bisect: fix allocation of "int*" instead of "int". X-Git-Tag: v1.5.2.5~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4e0b2bbc578f8729cf43939acb36e8db02ed8825?ds=inline;hp=--cc rev-list --bisect: fix allocation of "int*" instead of "int". Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- 4e0b2bbc578f8729cf43939acb36e8db02ed8825 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) {