From a9a8e5f0dc22aaa9e53578b5b2d7569279e6cb94 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Jul 2020 21:17:57 +0200 Subject: [PATCH] patch 8.2.1117: Coverity warns for unsing unitialized field Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock. --- src/if_lua.c | 2 ++ src/version.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/if_lua.c b/src/if_lua.c index 20cdbbcebc..9852c618e8 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -576,6 +576,8 @@ luaV_totypval(lua_State *L, int pos, typval_T *tv) { int status = OK; + tv->v_lock = 0; + switch (lua_type(L, pos)) { case LUA_TBOOLEAN: diff --git a/src/version.c b/src/version.c index 54469ffc2b..2d9455929e 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1117, /**/ 1116, /**/