From: Jan Kara Date: Thu, 18 Nov 2021 16:49:24 GMT Subject: [PATCH 11/27] bisect: Fix bisection debugging Message-ID: <20211118164940.8818-12-jack@suse.cz> In-Reply-To: <20211118164940.8818-1-jack@suse.cz> 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 --- 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