]> granicus.if.org Git - vim/commitdiff
patch 8.2.1672: v_lock is used when it is not initialized v8.2.1672
authorBram Moolenaar <Bram@vim.org>
Sat, 12 Sep 2020 20:10:00 +0000 (22:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Sep 2020 20:10:00 +0000 (22:10 +0200)
Problem:    v_lock is used when it is not initialized. (Yegappan Lakshmanan)
Solution:   Initialize the typval in eval1().

src/eval.c
src/version.c

index 3e972a29a2c136f94a976ddf1b2bd27893bb88ea..18f3a5bc05ae7b66406ffeb8f2cecbec2659fbee 100644 (file)
@@ -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.
      */
index 0f88042ca5e528fc59c13c001d64146ffe5f9f39..950ca40c3e790a92186f7400becc44909d6998ee 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1672,
 /**/
     1671,
 /**/