patch 9.1.1542: Coverity complains about uninitialized variable
Commit:
https://github.com/vim/vim/commit/6865bdc914cf998f23ff4c80bae60bff6639d8c3
Author: Christian Brabandt <[email protected]>
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 <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1ubPLI-005jj0-Dq%40256bit.org.