commit | dd7eff0a755c40eb88b494b98ac1a24f858ba880 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri May 06 11:02:05 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri May 06 11:02:05 2022 +0100 |
tree | 5b626b82a42657a957c054c68c94ab89578ce5d3 | |
parent | d560014e032e0646234a56af18ae1bfa6c1f5c90 [diff] [blame] |
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)