Patch 8.2.0498

10 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 2, 2020, 10:01:29 AM4/2/20
to vim...@googlegroups.com

Patch 8.2.0498
Problem: Coverity complains about uninitialized field.
Solution: Initialize the whole typval_T.
Files: src/vim9compile.c


*** ../vim-8.2.0497/src/vim9compile.c 2020-04-01 23:05:15.275595403 +0200
--- src/vim9compile.c 2020-04-02 15:53:50.925676056 +0200
***************
*** 4147,4153 ****
return FAIL;

// get the second variable
! tv2.v_type = VAR_UNKNOWN;
*arg = skipwhite(p + len);
if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL
|| tv2.v_type != VAR_STRING)
--- 4147,4153 ----
return FAIL;

// get the second variable
! init_tv(&tv2);
*arg = skipwhite(p + len);
if (evaluate_const_expr7(arg, cctx, &tv2) == FAIL
|| tv2.v_type != VAR_STRING)
*** ../vim-8.2.0497/src/version.c 2020-04-02 15:17:28.937496171 +0200
--- src/version.c 2020-04-02 15:54:37.325496157 +0200
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 498,
/**/

--
User: I'm having problems with my text editor.
Help desk: Which editor are you using?
User: I don't know, but it's version VI (pronounced: 6).
Help desk: Oh, then you should upgrade to version VIM (pronounced: 994).

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages