0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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 <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2025-07-14 21:46:46 +02:00
parent ada6b27ff1
commit 6865bdc914
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 4 additions and 2 deletions

View 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();

View File

@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1542,
/**/
1541,
/**/