From: Bram Moolenaar Date: Wed, 11 Aug 2021 14:47:26 +0000 (+0200) Subject: patch 8.2.3329: v_lock not set when getting value of environment variable X-Git-Tag: v8.2.3329 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16e63e6d353c8b7337470644ceac02dc5e569db9;p=vim 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. --- 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; diff --git a/src/version.c b/src/version.c index 4041be41a..b8e17af80 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3329, /**/ 3328, /**/