Skip to content

Commit 4b7f59a

Browse files
committed
Merge branch 'maint'
* maint: rev-list --bisect: fix allocation of "int*" instead of "int".
2 parents cf32190 + 4e0b2bb commit 4b7f59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-rev-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
300300
show_list("bisection 2 sorted", 0, nr, list);
301301

302302
*all = nr;
303-
weights = xcalloc(on_list, sizeof(int*));
303+
weights = xcalloc(on_list, sizeof(*weights));
304304
counted = 0;
305305

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

0 commit comments

Comments
 (0)