diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-30 19:37:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-30 19:37:52 +0000 |
commit | 5703310e640c4b142a16a3ea4f45317565ae8c32 (patch) | |
tree | 509e387f9321f06183c7af01cb5e00b9fb531031 | |
parent | 6a058070924928f1b2bdb11f345229074904d8bd (diff) | |
download | vim-git-5703310e640c4b142a16a3ea4f45317565ae8c32.tar.gz |
patch 8.2.4266: compiler warning for uninitialized variablev8.2.4266
Problem: Compiler warning for uninitialized variable.
Solution: Initialize saved_did_emsg.
-rw-r--r-- | src/userfunc.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4266, +/**/ 4265, /**/ 4264, |