• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révision0d503ba62380e6dd4d2474a0f8a76cfd4b92bad0 (tree)
l'heure2020-04-02 23:15:03
AuteurBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Message de Log

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.

Change Summary

Modification

diff -r e188358c0d8a -r 0d503ba62380 src/version.c
--- a/src/version.c Thu Apr 02 15:30:05 2020 +0200
+++ b/src/version.c Thu Apr 02 16:15:03 2020 +0200
@@ -739,6 +739,8 @@
739739 static int included_patches[] =
740740 { /* Add new patch number below this line */
741741 /**/
742+ 498,
743+/**/
742744 497,
743745 /**/
744746 496,
diff -r e188358c0d8a -r 0d503ba62380 src/vim9compile.c
--- a/src/vim9compile.c Thu Apr 02 15:30:05 2020 +0200
+++ b/src/vim9compile.c Thu Apr 02 16:15:03 2020 +0200
@@ -4147,7 +4147,7 @@
41474147 return FAIL;
41484148
41494149 // get the second variable
4150- tv2.v_type = VAR_UNKNOWN;
4150+ init_tv(&tv2);
41514151 *arg = skipwhite(p + len);
41524152 if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL
41534153 || tv2.v_type != VAR_STRING)
Afficher sur ancien navigateur de dépôt.