]> granicus.if.org Git - vim/commitdiff
patch 8.2.3329: v_lock not set when getting value of environment variable v8.2.3329
authorBram Moolenaar <Bram@vim.org>
Wed, 11 Aug 2021 14:47:26 +0000 (16:47 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 11 Aug 2021 14:47:26 +0000 (16:47 +0200)
Problem:    v_lock not set when getting value of environment variable.
Solution:   Set v_lock to zero.

src/typval.c
src/version.c

index 5a62fa069189dfa35e1677b4454d43f079602265..cdb617554e0a5adf499486298bd04eb67306b16d 100644 (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;
index 4041be41a32e123fb356874b704c3ffc4749d15c..b8e17af80042dd3a90dc6740975b58b7d97259d8 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3329,
 /**/
     3328,
 /**/