# HG changeset patch # User Bram Moolenaar # Date 1651832103 -7200 # Node ID 094a70434f909f378c27e10c5de46198299e7266 # Parent 0c46a01e5d5cce7c24fd3f51883f3ff9b53dddc4 patch 8.2.4878: valgrind warning for using uninitialized variable Commit: https://github.com/vim/vim/commit/dd7eff0a755c40eb88b494b98ac1a24f858ba880 Author: Bram Moolenaar 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. diff --git a/src/strings.c b/src/strings.c --- 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) diff --git a/src/version.c b/src/version.c --- 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,