diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-06 11:02:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-06 11:02:05 +0100 |
commit | dd7eff0a755c40eb88b494b98ac1a24f858ba880 (patch) | |
tree | 5b626b82a42657a957c054c68c94ab89578ce5d3 | |
parent | d560014e032e0646234a56af18ae1bfa6c1f5c90 (diff) |
patch 8.2.4878: valgrind warning for using uninitialized variablev8.2.4878
Problem: Valgrind warning for using uninitialized variable.
Solution: Initialize the type of newtv.
-rw-r--r-- | src/strings.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/strings.c b/src/strings.c index 7a99cd9642..0313e7480e 100644 --- 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 index e3aa288af9..30f420bdd3 100644 --- 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, |