diff src/vim9compile.c @ 19304:097c46668bd1 v8.2.0210

patch 8.2.0210: Coverity complains about uninitialized field Commit: https://github.com/vim/vim/commit/eed3571fe0f7d2ae779e5d36388cc4fe16c3516e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 4 23:08:14 2020 +0100 patch 8.2.0210: Coverity complains about uninitialized field Problem: Coverity complains about uninitialized field. Solution: Initialize the field.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Feb 2020 23:15:03 +0100
parents 2a63b7f5802a
children 17dc6282f370
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -3678,6 +3678,7 @@ evaluate_const_and_or(char_u **arg, cctx
 	    // 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)
 	    {