diff src/userfunc.c @ 27476:4f1cf9579e4e v8.2.4266

patch 8.2.4266: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/5703310e640c4b142a16a3ea4f45317565ae8c32 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jan 2022 20:45:02 +0100
parents 55613f0d59bc
children 14640c6fe1fe
line wrap: on
line diff
--- 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;