Skip to content

Commit 4e0b2bb

Browse files
chriscoolgitster
authored andcommitted
rev-list --bisect: fix allocation of "int*" instead of "int".
Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 281a53b commit 4e0b2bb

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
@@ -310,7 +310,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
310310
show_list("bisection 2 sorted", 0, nr, list);
311311

312312
*all = nr;
313-
weights = xcalloc(on_list, sizeof(int*));
313+
weights = xcalloc(on_list, sizeof(*weights));
314314
counted = 0;
315315

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

0 commit comments

Comments
 (0)