Skip to content

Commit eed3571

Browse files
committed
patch 8.2.0210: Coverity complains about uninitialized field
Problem: Coverity complains about uninitialized field. Solution: Initialize the field.
1 parent 560979e commit eed3571

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
210,
745747
/**/
746748
209,
747749
/**/

src/vim9compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3678,6 +3678,7 @@ evaluate_const_and_or(char_u **arg, cctx_T *cctx, char *op, typval_T *tv)
36783678
// eval the next expression
36793679
*arg = skipwhite(p + 2);
36803680
tv2.v_type = VAR_UNKNOWN;
3681+
tv2.v_lock = 0;
36813682
if ((opchar == '|' ? evaluate_const_expr3(arg, cctx, &tv2)
36823683
: evaluate_const_expr7(arg, cctx, &tv2)) == FAIL)
36833684
{

0 commit comments

Comments
 (0)