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/eval.c | |
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/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 2 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. */ |