forked from aniani/vim
patch 9.1.1333: Coverity: complains about unutilized variable
Problem: Coverity: complains about unutilized variable Solution: initialize typval properly (author) Fixes: Coverity issue: 1646573 tmp.v_lock is left unitialized related: #17189 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -1305,6 +1305,7 @@ tv_stringify(typval_T *varp, char_u *buf)
|
|||||||
{
|
{
|
||||||
typval_T tmp;
|
typval_T tmp;
|
||||||
|
|
||||||
|
init_tv(&tmp);
|
||||||
f_string(varp, &tmp);
|
f_string(varp, &tmp);
|
||||||
tv_get_string_buf(&tmp, buf);
|
tv_get_string_buf(&tmp, buf);
|
||||||
clear_tv(varp);
|
clear_tv(varp);
|
||||||
|
@@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
1333,
|
||||||
/**/
|
/**/
|
||||||
1332,
|
1332,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user