mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1117: Coverity warns for unsing unitialized field
Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user