diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-04 23:08:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-04 23:08:14 +0100 |
commit | eed3571fe0f7d2ae779e5d36388cc4fe16c3516e (patch) | |
tree | 31412364195af688c998b03c42d362663902bcf6 | |
parent | 560979ed4f0216f902a2c247e937f00a27dcb198 (diff) | |
download | vim-git-eed3571fe0f7d2ae779e5d36388cc4fe16c3516e.tar.gz |
patch 8.2.0210: Coverity complains about uninitialized fieldv8.2.0210
Problem: Coverity complains about uninitialized field.
Solution: Initialize the field.
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c index aae2526c8..53262817d 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 210, +/**/ 209, /**/ 208, diff --git a/src/vim9compile.c b/src/vim9compile.c index d7c7c8be8..117bfd291 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3678,6 +3678,7 @@ evaluate_const_and_or(char_u **arg, cctx_T *cctx, char *op, typval_T *tv) // eval the next expression *arg = skipwhite(p + 2); tv2.v_type = VAR_UNKNOWN; + tv2.v_lock = 0; if ((opchar == '|' ? evaluate_const_expr3(arg, cctx, &tv2) : evaluate_const_expr7(arg, cctx, &tv2)) == FAIL) { |