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 /src/userfunc.c | |
parent | 6a058070924928f1b2bdb11f345229074904d8bd (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.c | 2 |
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; |