changeset 28708:094a70434f90 v8.2.4878

patch 8.2.4878: valgrind warning for using uninitialized variable Commit: https://github.com/vim/vim/commit/dd7eff0a755c40eb88b494b98ac1a24f858ba880 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 6 11:02:05 2022 +0100 patch 8.2.4878: valgrind warning for using uninitialized variable Problem: Valgrind warning for using uninitialized variable. Solution: Initialize the type of newtv.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 May 2022 12:15:03 +0200
parents 0c46a01e5d5c
children 903288389627
files src/strings.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/strings.c
+++ b/src/strings.c
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4878,
+/**/
     4877,
 /**/
     4876,