show_list() dumps commit weights associated with each commit. Thus it needs commit_weight slab already initialized. Move initialization of commit_weight slab before the first show_list() call. Signed-off-by: Jan Kara <jack@xxxxxxx> --- bisect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bisect.c b/bisect.c index 888949fba6b5..ab264b8ca879 100644 --- a/bisect.c +++ b/bisect.c @@ -395,8 +395,8 @@ void find_bisection(struct commit_list **commit_list, int *reaches, struct commit_list *list, *p, *best, *next, *last; int *weights; - show_list("bisection 2 entry", 0, 0, *commit_list); init_commit_weight(&commit_weight); + show_list("bisection 2 entry", 0, 0, *commit_list); /* * Count the number of total and tree-changing items on the -- 2.26.2