diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-02 21:17:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-02 21:17:57 +0200 |
commit | a9a8e5f0dc22aaa9e53578b5b2d7569279e6cb94 (patch) | |
tree | afe316cad6ca632b7f5e0bf43acea02afa505fa7 | |
parent | d2ef6b320bf2e2f3fcc0bb858b16898e6f74b4d9 (diff) | |
download | vim-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.
-rw-r--r-- | src/if_lua.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |