commit | a79925a0a8f00577782090859eb0ef69e220d4aa | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 05 17:50:28 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 05 17:50:28 2021 +0100 |
tree | 2b6b2bb3a90f09a256d5b6dbdfefac238c015d65 | |
parent | 752fc692ace51459cb407ec117c147b3bbebc071 [diff] [blame] |
patch 8.2.2302: Vim9: using an option value may use uninitialized memory Problem: Vim9: using an option value may use uninitialized memory. Solution: Clear v_lock. (closes #7620)
diff --git a/src/typval.c b/src/typval.c index 421e62a..d16f0e6 100644 --- a/src/typval.c +++ b/src/typval.c
@@ -1117,6 +1117,7 @@ } else if (rettv != NULL) { + rettv->v_lock = 0; if (opt_type == gov_hidden_string) { rettv->v_type = VAR_STRING;