0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.1672: v_lock is used when it is not initialized

Problem:    v_lock is used when it is not initialized. (Yegappan Lakshmanan)
Solution:   Initialize the typval in eval1().
This commit is contained in:
Bram Moolenaar
2020-09-12 22:10:00 +02:00
parent c6e57b74fa
commit 4a091b9978
2 changed files with 4 additions and 0 deletions

View File

@@ -2103,6 +2103,8 @@ eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg)
char_u *p; char_u *p;
int getnext; int getnext;
CLEAR_POINTER(rettv);
/* /*
* Get the first variable. * Get the first variable.
*/ */

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1672,
/**/ /**/
1671, 1671,
/**/ /**/