Patch 9.0.1055
Problem: Coverity warns for using uninitialized memory.
Solution: Clear the "lhs" field earlier.
Files: src/vim9compile.c
*** ../vim-9.0.1054/src/vim9compile.c 2022-12-13 18:42:19.749879633 +0000
--- src/vim9compile.c 2022-12-14 13:48:55.234661772 +0000
***************
*** 2220,2225 ****
--- 2220,2226 ----
char_u *sp;
int is_decl = is_decl_command(cmdidx);
lhs_T lhs;
+ CLEAR_FIELD(lhs);
long start_lnum = SOURCING_LNUM;
int has_arg_is_set_prefix = STRNCMP(arg, "ifargisset ", 11)
== 0;
***************
*** 2244,2251 ****
if (p == NULL)
return *arg == '[' ? arg : NULL;
- lhs.lhs_name = NULL;
-
if (eap->cmdidx == CMD_increment || eap->cmdidx == CMD_decrement)
{
if (VIM_ISWHITE(eap->cmd[2]))
--- 2245,2250 ----
*** ../vim-9.0.1054/src/version.c 2022-12-13 21:14:19.219930894 +0000
--- src/version.c 2022-12-14 13:49:36.482665782 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1055,
/**/
--
TALL KNIGHT OF NI: Ni!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/20221214135046.DDAD01C0D32%40moolenaar.net.