comparison src/if_lua.c @ 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 43e82e8133b9
children 5b0bbc5d4e74
comparison
equal deleted inserted replaced
21131:42bf2c3c9fee 21132:985e61894bb4
573 */ 573 */
574 static int 574 static int
575 luaV_totypval(lua_State *L, int pos, typval_T *tv) 575 luaV_totypval(lua_State *L, int pos, typval_T *tv)
576 { 576 {
577 int status = OK; 577 int status = OK;
578
579 tv->v_lock = 0;
578 580
579 switch (lua_type(L, pos)) 581 switch (lua_type(L, pos))
580 { 582 {
581 case LUA_TBOOLEAN: 583 case LUA_TBOOLEAN:
582 tv->v_type = VAR_BOOL; 584 tv->v_type = VAR_BOOL;