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 -- b...@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    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230222123547.AC7E21C0B1F%40moolenaar.net.

Raspunde prin e-mail lui