changeset 25585:10edc624b171 v8.2.3329

patch 8.2.3329: v_lock not set when getting value of environment variable Commit: https://github.com/vim/vim/commit/16e63e6d353c8b7337470644ceac02dc5e569db9 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 11 16:47:26 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 11 Aug 2021 17:00:03 +0200
parents be8b76b05834
children 095dc4ace359
files src/typval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/typval.c
+++ b/src/typval.c
@@ -2082,6 +2082,7 @@ eval_env_var(char_u **arg, typval_T *ret
 
 	rettv->v_type = VAR_STRING;
 	rettv->vval.v_string = string;
+	rettv->v_lock = 0;
     }
 
     return OK;
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3329,
+/**/
     3328,
 /**/
     3327,