mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
fix(completion): avoid freeing uninitialized value (#33459)
This commit is contained in:
@@ -3242,7 +3242,7 @@ static int ExpandUserList(expand_T *xp, char ***matches, int *numMatches)
|
||||
|
||||
static int ExpandUserLua(expand_T *xp, int *num_file, char ***file)
|
||||
{
|
||||
typval_T rettv;
|
||||
typval_T rettv = TV_INITIAL_VALUE;
|
||||
nlua_call_user_expand_func(xp, &rettv);
|
||||
if (rettv.v_type != VAR_LIST) {
|
||||
tv_clear(&rettv);
|
||||
|
Reference in New Issue
Block a user