diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-02 16:00:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-02 16:00:04 +0200 |
commit | 4227c789ffe667b74affab38a1b8bea27cd69b36 (patch) | |
tree | 0ba17ffa9e1254c849e055abf85270a7f08450bb /src/vim9compile.c | |
parent | e5bae13da327235836b505ee47224b465713ad75 (diff) | |
download | vim-git-4227c789ffe667b74affab38a1b8bea27cd69b36.tar.gz |
patch 8.2.0498: Coverity complains about uninitialized fieldv8.2.0498
Problem: Coverity complains about uninitialized field.
Solution: Initialize the whole typval_T.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |