1
0
forked from aniani/vim

patch 8.2.3329: v_lock not set when getting value of environment variable

Problem:    v_lock not set when getting value of environment variable.
Solution:   Set v_lock to zero.
This commit is contained in:
Bram Moolenaar
2021-08-11 16:47:26 +02:00
parent b85d3627d9
commit 16e63e6d35
2 changed files with 3 additions and 0 deletions

View File

@@ -2082,6 +2082,7 @@ eval_env_var(char_u **arg, typval_T *rettv, int evaluate)
rettv->v_type = VAR_STRING; rettv->v_type = VAR_STRING;
rettv->vval.v_string = string; rettv->vval.v_string = string;
rettv->v_lock = 0;
} }
return OK; return OK;

View File

@@ -755,6 +755,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 */
/**/
3329,
/**/ /**/
3328, 3328,
/**/ /**/