diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-12 22:10:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-12 22:10:00 +0200 |
commit | 4a091b9978122428e7d9154d034c640c9c8d8c13 (patch) | |
tree | 10f22bfbac607334218680013e177751097a064d /src | |
parent | c6e57b74fa1e6090a27f886e2b3830fd1fa15708 (diff) |
patch 8.2.1672: v_lock is used when it is not initializedv8.2.1672
Problem: v_lock is used when it is not initialized. (Yegappan Lakshmanan)
Solution: Initialize the typval in eval1().
Diffstat (limited to 'src')
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 3e972a29a2..18f3a5bc05 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2103,6 +2103,8 @@ eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg) char_u *p; int getnext; + CLEAR_POINTER(rettv); + /* * Get the first variable. */ diff --git a/src/version.c b/src/version.c index 0f88042ca5..950ca40c3e 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1672, +/**/ 1671, /**/ 1670, |