Browse Source

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>
maint
Christian Couder 18 years ago committed by Junio C Hamano
parent
commit
4e0b2bbc57
  1. 2
      builtin-rev-list.c

2
builtin-rev-list.c

@ -310,7 +310,7 @@ static struct commit_list *find_bisection(struct commit_list *list, @@ -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) {

Loading…
Cancel
Save