From 6865bdc914cf998f23ff4c80bae60bff6639d8c3 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 14 Jul 2025 21:46:46 +0200 Subject: [PATCH] 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 --- src/insexpand.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/insexpand.c b/src/insexpand.c index e9ace57676..e355a60fe1 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 37c2c9146a..e14de81a4c 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, /**/