]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1542: Coverity complains about uninitialized variable v9.1.1542
authorChristian Brabandt <cb@256bit.org>
Mon, 14 Jul 2025 19:46:46 +0000 (21:46 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 14 Jul 2025 19:46:46 +0000 (21:46 +0200)
Problem:  Coverity complains about uninitialized variable
          (Tony Mechelynck)
Solution: Initialize variables

closes: #17717

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

index e9ace5767606ecfc3935708c0461339d90318c1f..e355a60fe18e69ccc8fdb1b93688947972edc529 100644 (file)
@@ -2395,8 +2395,8 @@ ins_compl_need_restart(void)
 ins_compl_new_leader(void)
 {
     int            cur_cot_flags = get_cot_flags();
-    int            save_w_wrow;
-    int            save_w_leftcol;
+    int            save_w_wrow = curwin->w_wrow;
+    int            save_w_leftcol = curwin->w_leftcol;
 
     ins_compl_del_pum();
     ins_compl_delete();
index 37c2c9146af80f9f1c7a7d1ce4eedfb1cc395787..e14de81a4cc4e22f23690c19d12e23b96f0082aa 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1542,
 /**/
     1541,
 /**/