mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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 commit865a28155e
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
1bea812953
commit
8dd88056f1
@@ -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;
|
||||
|
Reference in New Issue
Block a user