Commit: patch 9.1.0947: short-description

3 views
Skip to first unread message

Christian Brabandt

unread,
Dec 19, 2024, 2:15:14 PM12/19/24
to vim...@googlegroups.com
patch 9.1.0947: short-description

Commit: https://github.com/vim/vim/commit/59c8880adef567addc8e91b37ee6b91fc7d7638d
Author: Yegappan Lakshmanan <yega...@yahoo.com>
Date: Thu Dec 19 20:00:31 2024 +0100

patch 9.1.0947: short-description

Problem: Coverity comlains about un-initialized var
(after v9.1.0943)
Solution: initialize variable (Yegappan Lakshmanan)

closes: #16256

Signed-off-by: Yegappan Lakshmanan <yega...@yahoo.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/version.c b/src/version.c
index f18772d18..f02661753 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,10 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 947,
+/**/
+ 946,
/**/
945,
/**/
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 3666bb35c..eb9ddafbb 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2281,7 +2281,7 @@ compile_lhs(
int oplen,
cctx_T *cctx)
{
- char_u *var_end;
+ char_u *var_end = NULL;
int is_decl = is_decl_command(cmdidx);

if (lhs_init(lhs, var_start, is_decl, heredoc, &var_end) == FAIL)
Reply all
Reply to author
Forward
0 new messages