mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 7.4.1679
Problem: Coverity: copying value of v_lock without initializing it. Solution: Init v_lock in rettv_list_alloc() and rettv_dict_alloc().
This commit is contained in:
@@ -6027,6 +6027,7 @@ rettv_list_alloc(typval_T *rettv)
|
|||||||
|
|
||||||
rettv->vval.v_list = l;
|
rettv->vval.v_list = l;
|
||||||
rettv->v_type = VAR_LIST;
|
rettv->v_type = VAR_LIST;
|
||||||
|
rettv->v_lock = 0;
|
||||||
++l->lv_refcount;
|
++l->lv_refcount;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
@@ -7277,6 +7278,7 @@ rettv_dict_alloc(typval_T *rettv)
|
|||||||
|
|
||||||
rettv->vval.v_dict = d;
|
rettv->vval.v_dict = d;
|
||||||
rettv->v_type = VAR_DICT;
|
rettv->v_type = VAR_DICT;
|
||||||
|
rettv->v_lock = 0;
|
||||||
++d->dv_refcount;
|
++d->dv_refcount;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
@@ -748,6 +748,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 */
|
||||||
|
/**/
|
||||||
|
1679,
|
||||||
/**/
|
/**/
|
||||||
1678,
|
1678,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user