commit | a9a8e5f0dc22aaa9e53578b5b2d7569279e6cb94 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jul 02 21:17:57 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jul 02 21:17:57 2020 +0200 |
tree | afe316cad6ca632b7f5e0bf43acea02afa505fa7 | |
parent | d2ef6b320bf2e2f3fcc0bb858b16898e6f74b4d9 [diff] [blame] |
patch 8.2.1117: Coverity warns for unsing unitialized field Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock.
diff --git a/src/if_lua.c b/src/if_lua.c index 20cdbbc..9852c61 100644 --- a/src/if_lua.c +++ b/src/if_lua.c
@@ -576,6 +576,8 @@ { int status = OK; + tv->v_lock = 0; + switch (lua_type(L, pos)) { case LUA_TBOOLEAN: