1
0
forked from aniani/vim

patch 8.2.4878: valgrind warning for using uninitialized variable

Problem:    Valgrind warning for using uninitialized variable.
Solution:   Initialize the type of newtv.
This commit is contained in:
Bram Moolenaar 2022-05-06 11:02:05 +01:00
parent d560014e03
commit dd7eff0a75
2 changed files with 3 additions and 0 deletions

View File

@ -898,6 +898,7 @@ string_filter_map(
break;
len = (int)STRLEN(tv.vval.v_string);
newtv.v_type = VAR_UNKNOWN;
set_vim_var_nr(VV_KEY, idx);
if (filter_map_one(&tv, expr, filtermap, &newtv, &rem) == FAIL
|| did_emsg)

View File

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