summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-02 21:17:57 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-02 21:17:57 +0200
commita9a8e5f0dc22aaa9e53578b5b2d7569279e6cb94 (patch)
treeafe316cad6ca632b7f5e0bf43acea02afa505fa7 /src
parentd2ef6b320bf2e2f3fcc0bb858b16898e6f74b4d9 (diff)
downloadvim-git-a9a8e5f0dc22aaa9e53578b5b2d7569279e6cb94.tar.gz
patch 8.2.1117: Coverity warns for unsing unitialized fieldv8.2.1117
Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock.
Diffstat (limited to 'src')
-rw-r--r--src/if_lua.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index 20cdbbceb..9852c618e 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 54469ffc2..2d9455929 100644
--- 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,