0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.2.0210: Coverity complains about uninitialized field

Problem:    Coverity complains about uninitialized field.
Solution:   Initialize the field.
This commit is contained in:
Bram Moolenaar 2020-02-04 23:08:14 +01:00
parent 560979ed4f
commit eed3571fe0
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -3678,6 +3678,7 @@ evaluate_const_and_or(char_u **arg, cctx_T *cctx, char *op, typval_T *tv)
// eval the next expression
*arg = skipwhite(p + 2);
tv2.v_type = VAR_UNKNOWN;
tv2.v_lock = 0;
if ((opchar == '|' ? evaluate_const_expr3(arg, cctx, &tv2)
: evaluate_const_expr7(arg, cctx, &tv2)) == FAIL)
{