patch 8.2.4878: valgrind warning for using uninitialized variable
Problem: Valgrind warning for using uninitialized variable.
Solution: Initialize the type of newtv.
diff --git a/src/strings.c b/src/strings.c
index 7a99cd9..0313e74 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -898,6 +898,7 @@
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)
diff --git a/src/version.c b/src/version.c
index e3aa288..30f420b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4878,
+/**/
4877,
/**/
4876,