changeset 21132:985e61894bb4 v8.2.1117

patch 8.2.1117: Coverity warns for unsing unitialized field Commit: https://github.com/vim/vim/commit/a9a8e5f0dc22aaa9e53578b5b2d7569279e6cb94 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 2 21:17:57 2020 +0200 patch 8.2.1117: Coverity warns for unsing unitialized field Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock.
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Jul 2020 21:30:03 +0200
parents 42bf2c3c9fee
children a5fec5bd4e7b
files src/if_lua.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -576,6 +576,8 @@ luaV_totypval(lua_State *L, int pos, typ
 {
     int status = OK;
 
+    tv->v_lock = 0;
+
     switch (lua_type(L, pos))
     {
 	case LUA_TBOOLEAN:
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1117,
+/**/
     1116,
 /**/
     1115,