From 4227c789ffe667b74affab38a1b8bea27cd69b36 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Apr 2020 16:00:04 +0200 Subject: [PATCH] patch 8.2.0498: Coverity complains about uninitialized field Problem: Coverity complains about uninitialized field. Solution: Initialize the whole typval_T. --- src/version.c | 2 ++ src/vim9compile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 9ceed5a95..f4415f2d6 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 498, /**/ 497, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index a4e9eab90..bf87b6f96 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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) -- 2.50.1