Skip to content

Commit

Permalink
rev-list --bisect: fix allocation of "int*" instead of "int".
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Aug 1, 2007
1 parent 281a53b commit 4e0b2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4e0b2bb

Please sign in to comment.