From: Bram Moolenaar Date: Sat, 12 Sep 2020 20:10:00 +0000 (+0200) Subject: patch 8.2.1672: v_lock is used when it is not initialized X-Git-Tag: v8.2.1672 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a091b9978122428e7d9154d034c640c9c8d8c13;p=vim 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(). --- diff --git a/src/eval.c b/src/eval.c index 3e972a29a..18f3a5bc0 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 0f88042ca..950ca40c3 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1672, /**/ 1671, /**/