]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1869: Coverity warns about unitialized var v9.0.1869
authorErnie Rael <errael@raelity.com>
Tue, 5 Sep 2023 05:33:48 +0000 (07:33 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 5 Sep 2023 05:33:48 +0000 (07:33 +0200)
Problem:  Coverity warns about unitialized var
Solution: initialize it

closes: #13029

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
src/eval.c
src/version.c

index 4e1dbdeeaf35757d906829276aefeaee22c012c1..ec8d3baf9c0b6ca8cb4a121aad66a10e131d8265 100644 (file)
@@ -1025,7 +1025,7 @@ get_lval(
     int                len;
     hashtab_T  *ht = NULL;
     int                quiet = flags & GLV_QUIET;
-    int                writing;
+    int                writing = 0;
     int                vim9script = in_vim9script();
 
     // Clear everything in "lp".
index d986e7b6f285ec09a3484b57daad4679eba6161a..0010dd5cf91b6633f7dc57406719b59e778dc103 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1869,
 /**/
     1868,
 /**/