diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-05 17:50:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-05 17:50:28 +0100 |
commit | a79925a0a8f00577782090859eb0ef69e220d4aa (patch) | |
tree | 2b6b2bb3a90f09a256d5b6dbdfefac238c015d65 /src/typval.c | |
parent | 752fc692ace51459cb407ec117c147b3bbebc071 (diff) | |
download | vim-git-a79925a0a8f00577782090859eb0ef69e220d4aa.tar.gz |
patch 8.2.2302: Vim9: using an option value may use uninitialized memoryv8.2.2302
Problem: Vim9: using an option value may use uninitialized memory.
Solution: Clear v_lock. (closes #7620)
Diffstat (limited to 'src/typval.c')
-rw-r--r-- | src/typval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/typval.c b/src/typval.c index 421e62a37..d16f0e6df 100644 --- a/src/typval.c +++ b/src/typval.c @@ -1117,6 +1117,7 @@ eval_option( } else if (rettv != NULL) { + rettv->v_lock = 0; if (opt_type == gov_hidden_string) { rettv->v_type = VAR_STRING; |