Mercurial > vim
diff src/vim9compile.c @ 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 | dd3c80122a0e |
children | 5feb426d2ea1 |
line wrap: on
line diff
--- 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)