]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0947: short-description v9.1.0947
authorYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 19 Dec 2024 19:00:31 +0000 (20:00 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 19 Dec 2024 19:00:31 +0000 (20:00 +0100)
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>
src/version.c
src/vim9compile.c

index f18772d1814270db82797b4bcdacf50fec65a917..f02661753427fba78cac05594d7a8122b9e0d14f 100644 (file)
@@ -704,6 +704,10 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    947,
+/**/
+    946,
 /**/
     945,
 /**/
index 3666bb35ccbb46e9958f88ada9e5592360f11e6a..eb9ddafbbaabc912e001f59668206a81e49dca23 100644 (file)
@@ -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)