vim-patch:8.2.1672: v_lock is used when it is not initialized (#35416)

Problem:    v_lock is used when it is not initialized. (Yegappan Lakshmanan)
Solution:   Initialize the typval in eval1().

4a091b9978

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 865a28155e)
This commit is contained in:
zeertzjq
2025-08-22 06:28:45 +08:00
committed by github-actions[bot]
parent 1bea812953
commit 8dd88056f1

View File

@@ -2654,6 +2654,8 @@ int eval0_simple_funccal(char *arg, typval_T *rettv, exarg_T *eap, evalarg_T *co
/// @return OK or FAIL.
int eval1(char **arg, typval_T *rettv, evalarg_T *const evalarg)
{
CLEAR_POINTER(rettv);
// Get the first variable.
if (eval2(arg, rettv, evalarg) == FAIL) {
return FAIL;