]> granicus.if.org Git - vim/commitdiff
patch 8.2.0210: Coverity complains about uninitialized field v8.2.0210
authorBram Moolenaar <Bram@vim.org>
Tue, 4 Feb 2020 22:08:14 +0000 (23:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Feb 2020 22:08:14 +0000 (23:08 +0100)
Problem:    Coverity complains about uninitialized field.
Solution:   Initialize the field.

src/version.c
src/vim9compile.c

index aae2526c8b9b2ebb13e204582d9a1b3ef52fc011..53262817de3eb05829e489acb6beabd7dcee1db1 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    210,
 /**/
     209,
 /**/
index d7c7c8be831dbef450474cf2096a413badb527ad..117bfd291b408addb73df30314d92655db1d9181 100644 (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)
            {