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;
|
int status = OK;
|
||||||
|
|
||||||
|
tv->v_lock = 0;
|
||||||
|
|
||||||
switch (lua_type(L, pos))
|
switch (lua_type(L, pos))
|
||||||
{
|
{
|
||||||
case LUA_TBOOLEAN:
|
case LUA_TBOOLEAN:
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1117,
|
||||||
/**/
|
/**/
|
||||||
1116,
|
1116,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user