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

b53d4fb63e

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-05-31 18:57:40 +08:00
parent b6acf6112b
commit 857ff5cae9

View File

@@ -1394,7 +1394,7 @@ static int ins_compl_build_pum(void)
bool fuzzy_sort = fuzzy_filter && !(cur_cot_flags & kOptCotFlagNosort); bool fuzzy_sort = fuzzy_filter && !(cur_cot_flags & kOptCotFlagNosort);
compl_T *match_head = NULL, *match_tail = NULL; compl_T *match_head = NULL, *match_tail = NULL;
int match_count; int match_count = 0;
int cur_source = -1; int cur_source = -1;
bool max_matches_found = false; bool max_matches_found = false;
bool is_forward = compl_shows_dir_forward() && !fuzzy_filter; bool is_forward = compl_shows_dir_forward() && !fuzzy_filter;