Mercurial > vim
changeset 19884:0d503ba62380 v8.2.0498
patch 8.2.0498: Coverity complains about uninitialized field
Commit: https://github.com/vim/vim/commit/4227c789ffe667b74affab38a1b8bea27cd69b36
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Apr 2020 16:15:03 +0200 |
parents | e188358c0d8a |
children | 2d577d0240f4 |
files | src/version.c src/vim9compile.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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)