Commit: patch 9.1.1313: compile warning about uninitialized value

3 views
Skip to first unread message

Christian Brabandt

unread,
Apr 16, 2025, 3:30:13 PM4/16/25
to vim...@googlegroups.com
patch 9.1.1313: compile warning about uninitialized value

Commit: https://github.com/vim/vim/commit/b53d4fb63e0d4d36033d47ec35f2f302931f77ae
Author: Christian Brabandt <c...@256bit.org>
Date: Wed Apr 16 21:12:30 2025 +0200

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

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/insexpand.c b/src/insexpand.c
index 9a82a32bc..8673e7455 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1474,7 +1474,7 @@ ins_compl_build_pum(void)
compl_T *match_tail = NULL;
compl_T *match_next = NULL;
int update_shown_match = fuzzy_filter;
- int match_count;
+ int match_count = 0;
int cur_source = -1;
int max_matches_found = FALSE;
int is_forward = compl_shows_dir_forward() && !fuzzy_filter;
diff --git a/src/version.c b/src/version.c
index 2a51b4207..ef28005d9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1313,
/**/
1312,
/**/
Reply all
Reply to author
Forward
0 new messages