@matheusbsbs / matheus-bagliano / commits / 4e0b2bbc57
Fork 0

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>

Christian Couder committed Jul 31, 2007 at 14:48 UTC 4e0b2bbc578f8729cf43939acb36e8db02ed8825
1 file changed +1 -1
builtin-rev-list.c
+1 -1
@@ -310,7 +310,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
310 show_list("bisection 2 sorted", 0, nr, list);
311
312 *all = nr;
313 - weights = xcalloc(on_list, sizeof(int*));
313 + weights = xcalloc(on_list, sizeof(*weights));
314 counted = 0;
315
316 for (n = 0, p = list; p; p = p->next) {