Commit: patch 9.1.1542: Coverity complains about uninitialized variable

3 views
Skip to first unread message

Christian Brabandt

unread,
Jul 14, 2025, 4:00:14 PM7/14/25
to vim...@googlegroups.com
patch 9.1.1542: Coverity complains about uninitialized variable

Commit: https://github.com/vim/vim/commit/6865bdc914cf998f23ff4c80bae60bff6639d8c3
Author: Christian Brabandt <c...@256bit.org>
Date: Mon Jul 14 21:46:46 2025 +0200

patch 9.1.1542: Coverity complains about uninitialized variable

Problem: Coverity complains about uninitialized variable
(Tony Mechelynck)
Solution: Initialize variables

closes: #17717

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

diff --git a/src/insexpand.c b/src/insexpand.c
index e9ace5767..e355a60fe 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -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();
diff --git a/src/version.c b/src/version.c
index 37c2c9146..e14de81a4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =

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