From eed3571fe0f7d2ae779e5d36388cc4fe16c3516e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 4 Feb 2020 23:08:14 +0100 Subject: patch 8.2.0210: Coverity complains about uninitialized field Problem: Coverity complains about uninitialized field. Solution: Initialize the field. --- src/vim9compile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vim9compile.c') diff --git a/src/vim9compile.c b/src/vim9compile.c index d7c7c8be8..117bfd291 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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) { -- cgit v1.2.1