fix(completion): avoid freeing uninitialized value (#33459)

This commit is contained in:
zeertzjq
2025-04-14 13:02:58 +08:00
committed by GitHub
parent fd76646a95
commit 51caf0a3af
2 changed files with 14 additions and 1 deletions

View File

@@ -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);