Mirror of the Vim source from https://github.com/vim/vim
Révision | 0d503ba62380e6dd4d2474a0f8a76cfd4b92bad0 (tree) |
---|---|
l'heure | 2020-04-02 23:15:03 |
Auteur | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
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
@@ -739,6 +739,8 @@ | ||
739 | 739 | static int included_patches[] = |
740 | 740 | { /* Add new patch number below this line */ |
741 | 741 | /**/ |
742 | + 498, | |
743 | +/**/ | |
742 | 744 | 497, |
743 | 745 | /**/ |
744 | 746 | 496, |
@@ -4147,7 +4147,7 @@ | ||
4147 | 4147 | return FAIL; |
4148 | 4148 | |
4149 | 4149 | // get the second variable |
4150 | - tv2.v_type = VAR_UNKNOWN; | |
4150 | + init_tv(&tv2); | |
4151 | 4151 | *arg = skipwhite(p + len); |
4152 | 4152 | if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL |
4153 | 4153 | || tv2.v_type != VAR_STRING) |