summaryrefslogtreecommitdiffstats
path: root/src/userfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-30 19:37:52 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-30 19:37:52 +0000
commit5703310e640c4b142a16a3ea4f45317565ae8c32 (patch)
tree509e387f9321f06183c7af01cb5e00b9fb531031 /src/userfunc.c
parent6a058070924928f1b2bdb11f345229074904d8bd (diff)
patch 8.2.4266: compiler warning for uninitialized variablev8.2.4266
Problem: Compiler warning for uninitialized variable. Solution: Initialize saved_did_emsg.
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index f3fe4936a7..747e4d4778 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;