# HG changeset patch # User Bram Moolenaar # Date 1643571902 -3600 # Node ID 4f1cf9579e4e10910af016e3cd27a6c9b06fa558 # Parent a724d370c4cfa41f6e653aca7d3b90a85d5d5c38 patch 8.2.4266: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/5703310e640c4b142a16a3ea4f45317565ae8c32 Author: Bram Moolenaar Date: Sun Jan 30 19:37:52 2022 +0000 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 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -4104,7 +4104,7 @@ define_function(exarg_T *eap, char_u *na { 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4266, +/**/ 4265, /**/ 4264,