changeset 22246:6f83d2adee74 v8.2.1672

patch 8.2.1672: v_lock is used when it is not initialized Commit: https://github.com/vim/vim/commit/4a091b9978122428e7d9154d034c640c9c8d8c13 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 12 22:10:00 2020 +0200 patch 8.2.1672: v_lock is used when it is not initialized Problem: v_lock is used when it is not initialized. (Yegappan Lakshmanan) Solution: Initialize the typval in eval1().
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Sep 2020 22:15:03 +0200
parents 98ff9544a0b9
children 0201b99c7364
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -2103,6 +2103,8 @@ eval1(char_u **arg, typval_T *rettv, eva
     char_u  *p;
     int	    getnext;
 
+    CLEAR_POINTER(rettv);
+
     /*
      * Get the first variable.
      */
--- 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,