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.3-rc4~30^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e0b2bbc578f8729cf43939acb36e8db02ed8825;p=git.git 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 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) {