mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
16e63e6d35
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
031cf60d4a
commit
9636ae6a13
@ -4918,6 +4918,7 @@ static int eval_env_var(char **arg, typval_T *rettv, int evaluate)
|
||||
name[len] = (char)cc;
|
||||
rettv->v_type = VAR_STRING;
|
||||
rettv->vval.v_string = string;
|
||||
rettv->v_lock = VAR_UNLOCKED;
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
Loading…
Reference in New Issue
Block a user