]> granicus.if.org Git - vim/commitdiff
patch 9.0.0371: compiler warning for uninitialized variable v9.0.0371
authorBram Moolenaar <Bram@vim.org>
Sat, 3 Sep 2022 20:53:28 +0000 (21:53 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 3 Sep 2022 20:53:28 +0000 (21:53 +0100)
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize the variable. (John Marriott)

src/eval.c
src/version.c

index b8aa79fe4dfafbe5966e90c0cd2d6186e991adb8..6b2d86b47ae55c5ddcdec4db68c090d8eeae4755 100644 (file)
@@ -694,7 +694,7 @@ deref_function_name(
 {
     typval_T   ref;
     char_u     *name = *arg;
-    int                save_flags;
+    int                save_flags = 0;
 
     ref.v_type = VAR_UNKNOWN;
     if (evalarg != NULL)
index b438a46297ee14815352492bb6bc539e90c4d82a..d916059410e7f9f99c329275e2e986954d452817 100644 (file)
@@ -707,6 +707,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    371,
 /**/
     370,
 /**/