]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1313: compile warning about uninitialized value v9.1.1313
authorChristian Brabandt <cb@256bit.org>
Wed, 16 Apr 2025 19:12:30 +0000 (21:12 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 16 Apr 2025 19:12:30 +0000 (21:12 +0200)
Problem:  compile warning about uninitialized value
          (Tony Mechelynck, after v9.1.1311)
Solution: initialize variable on declaration

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/insexpand.c
src/version.c

index 9a82a32bcbbf66c8d4b1805c32f5480a4cd29778..8673e74551213c8c8976660addbda6f96f35254d 100644 (file)
@@ -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;
index 2a51b4207ab38d9d58d851fbab00ca0b628af772..ef28005d9e9384454a759e8837c8d2f8700ad74e 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1313,
 /**/
     1312,
 /**/