From: Bram Moolenaar Date: Sun, 30 Jan 2022 19:37:52 +0000 (+0000) Subject: patch 8.2.4266: compiler warning for uninitialized variable X-Git-Tag: v8.2.4266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5703310e640c4b142a16a3ea4f45317565ae8c32;p=vim patch 8.2.4266: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Initialize saved_did_emsg. --- diff --git a/src/userfunc.c b/src/userfunc.c index f3fe4936a..747e4d477 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -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; diff --git a/src/version.c b/src/version.c index e2d59070b..ca506ad14 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4266, /**/ 4265, /**/