1
0
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:
Christian Brabandt
2025-04-22 20:01:04 +02:00
parent 69e6ab6db3
commit 7dfc9e6121
2 changed files with 3 additions and 0 deletions

View File

@@ -1305,6 +1305,7 @@ tv_stringify(typval_T *varp, char_u *buf)
{
typval_T tmp;
init_tv(&tmp);
f_string(varp, &tmp);
tv_get_string_buf(&tmp, buf);
clear_tv(varp);

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1333,
/**/
1332,
/**/