From 16e63e6d353c8b7337470644ceac02dc5e569db9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 11 Aug 2021 16:47:26 +0200 Subject: 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. --- src/typval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/typval.c') diff --git a/src/typval.c b/src/typval.c index 5a62fa069..cdb617554 100644 --- a/src/typval.c +++ b/src/typval.c @@ -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; -- cgit v1.2.1