Patch 9.0.1340
Problem: Coverity warns for using NULL pointer.
Solution: Check that lhs_type is not NULL.
Files: src/vim9compile.c
*** ../vim-9.0.1339/src/vim9compile.c 2023-02-21 14:27:34.528360386 +0000
--- src/vim9compile.c 2023-02-22 12:33:47.194270366 +0000
***************
*** 1848,1855 ****
lhs->lhs_type = &t_any;
}
! int use_class = lhs->lhs_type->tt_type == VAR_CLASS
! || lhs->lhs_type->tt_type == VAR_OBJECT;
if (lhs->lhs_type == NULL
|| (use_class ? lhs->lhs_type->tt_class == NULL
: lhs->lhs_type->tt_member == NULL))
--- 1848,1856 ----
lhs->lhs_type = &t_any;
}
! int use_class = lhs->lhs_type != NULL
! && (lhs->lhs_type->tt_type == VAR_CLASS
! || lhs->lhs_type->tt_type == VAR_OBJECT);
if (lhs->lhs_type == NULL
|| (use_class ? lhs->lhs_type->tt_class == NULL
: lhs->lhs_type->tt_member == NULL))
*** ../vim-9.0.1339/src/version.c 2023-02-21 20:09:42.891689895 +0000
--- src/version.c 2023-02-22 12:34:23.146255432 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1340,
/**/
--
"Hit any key to continue" is very confusing when you have two keyboards.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///