0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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->vval.v_string = string;
rettv->v_lock = 0;
}
return OK;

View File

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