]> granicus.if.org Git - vim/commitdiff
patch 8.2.1117: Coverity warns for unsing unitialized field v8.2.1117
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Jul 2020 19:17:57 +0000 (21:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Jul 2020 19:17:57 +0000 (21:17 +0200)
Problem:    Coverity warns for unsing unitialized field.
Solution:   Initialize v_lock.

src/if_lua.c
src/version.c

index 20cdbbcebcd7d40866c1a7fc16479bdd87af8a57..9852c618e894c1c4b6cdf45fe75162b3aadf8ead 100644 (file)
@@ -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:
index 54469ffc2b267c9edd4995d9eb542d1b9f6fd6a7..2d9455929eb365499a90b0f7cf2166d4479d1fb8 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1117,
 /**/
     1116,
 /**/