mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4878: valgrind warning for using uninitialized variable
Problem: Valgrind warning for using uninitialized variable. Solution: Initialize the type of newtv.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user