]> granicus.if.org Git - vim/commitdiff
patch 8.2.4266: compiler warning for uninitialized variable v8.2.4266
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Jan 2022 19:37:52 +0000 (19:37 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Jan 2022 19:37:52 +0000 (19:37 +0000)
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize saved_did_emsg.

src/userfunc.c
src/version.c

index f3fe4936a747f8f6101ba0071fede0b3928dbdc6..747e4d47787228ad05ab29df2687cdb99d87e586 100644 (file)
@@ -4104,7 +4104,7 @@ define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free)
 {
     int                j;
     int                c;
-    int                saved_did_emsg;
+    int                saved_did_emsg = FALSE;
     char_u     *name = name_arg;
     int                is_global = FALSE;
     char_u     *p;
index e2d59070b656f7f08e44238341976caa0e744b81..ca506ad14cd762b181f8a607159431c065187d14 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4266,
 /**/
     4265,
 /**/