Mercurial > vim
comparison src/vim9compile.c @ 19304:097c46668bd1 v8.2.0210
patch 8.2.0210: Coverity complains about uninitialized field
Commit: https://github.com/vim/vim/commit/eed3571fe0f7d2ae779e5d36388cc4fe16c3516e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 4 23:08:14 2020 +0100
patch 8.2.0210: Coverity complains about uninitialized field
Problem: Coverity complains about uninitialized field.
Solution: Initialize the field.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Feb 2020 23:15:03 +0100 |
parents | 2a63b7f5802a |
children | 17dc6282f370 |
comparison
equal
deleted
inserted
replaced
19303:51bc26d4a393 | 19304:097c46668bd1 |
---|---|
3676 return FAIL; | 3676 return FAIL; |
3677 | 3677 |
3678 // eval the next expression | 3678 // eval the next expression |
3679 *arg = skipwhite(p + 2); | 3679 *arg = skipwhite(p + 2); |
3680 tv2.v_type = VAR_UNKNOWN; | 3680 tv2.v_type = VAR_UNKNOWN; |
3681 tv2.v_lock = 0; | |
3681 if ((opchar == '|' ? evaluate_const_expr3(arg, cctx, &tv2) | 3682 if ((opchar == '|' ? evaluate_const_expr3(arg, cctx, &tv2) |
3682 : evaluate_const_expr7(arg, cctx, &tv2)) == FAIL) | 3683 : evaluate_const_expr7(arg, cctx, &tv2)) == FAIL) |
3683 { | 3684 { |
3684 clear_tv(&tv2); | 3685 clear_tv(&tv2); |
3685 return FAIL; | 3686 return FAIL; |