]> granicus.if.org Git - vim/commitdiff
patch 8.2.0498: Coverity complains about uninitialized field v8.2.0498
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Apr 2020 14:00:04 +0000 (16:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Apr 2020 14:00:04 +0000 (16:00 +0200)
Problem:    Coverity complains about uninitialized field.
Solution:   Initialize the whole typval_T.

src/version.c
src/vim9compile.c

index 9ceed5a9520dd8972e593d27d0e3bf729cf2cc32..f4415f2d6e3ca5ad8b3531dc1fec8426d532f145 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    498,
 /**/
     497,
 /**/
index a4e9eab903a41bf7b3de779ba7a6f0ff528feffc..bf87b6f96d836d7346abea06e18f8c527ad6f199 100644 (file)
@@ -4147,7 +4147,7 @@ evaluate_const_expr4(char_u **arg, cctx_T *cctx UNUSED, typval_T *tv)
            return FAIL;
 
        // get the second variable
-       tv2.v_type = VAR_UNKNOWN;
+       init_tv(&tv2);
        *arg = skipwhite(p + len);
        if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL
                                                   || tv2.v_type != VAR_STRING)