0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4266: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize saved_did_emsg.
This commit is contained in:
Bram Moolenaar
2022-01-30 19:37:52 +00:00
parent 6a05807092
commit 5703310e64
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4266,
/**/
4265,
/**/