Browse Source

Merge branch 'maint'

* maint:
  rev-list --bisect: fix allocation of "int*" instead of "int".
maint
Junio C Hamano 18 years ago
parent
commit
4b7f59af2a
  1. 2
      builtin-rev-list.c

2
builtin-rev-list.c

@ -300,7 +300,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
show_list("bisection 2 sorted", 0, nr, list); show_list("bisection 2 sorted", 0, nr, list);


*all = nr; *all = nr;
weights = xcalloc(on_list, sizeof(int*)); weights = xcalloc(on_list, sizeof(*weights));
counted = 0; counted = 0;


for (n = 0, p = list; p; p = p->next) { for (n = 0, p = list; p; p = p->next) {

Loading…
Cancel
Save