# HG changeset patch # User Bram Moolenaar # Date 1585836903 -7200 # Node ID 0d503ba62380e6dd4d2474a0f8a76cfd4b92bad0 # Parent e188358c0d8a9a36bdf43b2910c3ece5f886f4bf patch 8.2.0498: Coverity complains about uninitialized field Commit: https://github.com/vim/vim/commit/4227c789ffe667b74affab38a1b8bea27cd69b36 Author: Bram Moolenaar Date: Thu Apr 2 16:00:04 2020 +0200 patch 8.2.0498: Coverity complains about uninitialized field Problem: Coverity complains about uninitialized field. Solution: Initialize the whole typval_T. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 498, +/**/ 497, /**/ 496, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4147,7 +4147,7 @@ evaluate_const_expr4(char_u **arg, cctx_ 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)