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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202004021401.032E1BuQ023008%40masaka.moolenaar.net.

Raspunde prin e-mail lui