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 <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/version.c b/src/version.c
index f18772d..f026617 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,10 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 947,
+/**/
+ 946,
+/**/
945,
/**/
944,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 3666bb3..eb9ddaf 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2281,7 +2281,7 @@
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)