From 857ff5cae936c7caa37949a6ffbc84915955114c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 31 May 2025 18:57:40 +0800 Subject: [PATCH] vim-patch:9.1.1313: compile warning about uninitialized value Problem: compile warning about uninitialized value (Tony Mechelynck, after v9.1.1311) Solution: initialize variable on declaration https://github.com/vim/vim/commit/b53d4fb63e0d4d36033d47ec35f2f302931f77ae Co-authored-by: Christian Brabandt --- src/nvim/insexpand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c index d0c9dd0af0..282b16bb1f 100644 --- a/src/nvim/insexpand.c +++ b/src/nvim/insexpand.c @@ -1394,7 +1394,7 @@ static int ins_compl_build_pum(void) bool fuzzy_sort = fuzzy_filter && !(cur_cot_flags & kOptCotFlagNosort); compl_T *match_head = NULL, *match_tail = NULL; - int match_count; + int match_count = 0; int cur_source = -1; bool max_matches_found = false; bool is_forward = compl_shows_dir_forward() && !fuzzy_filter;