Skip to content

Commit 16e63e6

Browse files
committed
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.
1 parent b85d362 commit 16e63e6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/typval.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,6 +2082,7 @@ eval_env_var(char_u **arg, typval_T *rettv, int evaluate)
20822082

20832083
rettv->v_type = VAR_STRING;
20842084
rettv->vval.v_string = string;
2085+
rettv->v_lock = 0;
20852086
}
20862087

20872088
return OK;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3329,
758760
/**/
759761
3328,
760762
/**/

0 commit comments

Comments
 (0)