changeset 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 51bc26d4a393
children c2a908fc485c
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    210,
+/**/
     209,
 /**/
     208,
--- 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)
 	    {