forked from aniani/vim
patch 8.2.0498: Coverity complains about uninitialized field
Problem: Coverity complains about uninitialized field. Solution: Initialize the whole typval_T.
This commit is contained in:
parent
e5bae13da3
commit
4227c789ff
@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
498,
|
||||||
/**/
|
/**/
|
||||||
497,
|
497,
|
||||||
/**/
|
/**/
|
||||||
|
@ -4147,7 +4147,7 @@ evaluate_const_expr4(char_u **arg, cctx_T *cctx UNUSED, typval_T *tv)
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
|
|
||||||
// get the second variable
|
// get the second variable
|
||||||
tv2.v_type = VAR_UNKNOWN;
|
init_tv(&tv2);
|
||||||
*arg = skipwhite(p + len);
|
*arg = skipwhite(p + len);
|
||||||
if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL
|
if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL
|
||||||
|| tv2.v_type != VAR_STRING)
|
|| tv2.v_type != VAR_STRING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user