Patch 9.0.0558
Problem:    Coverity warns for possibly using NULL pointer.
Solution:   Only use "evalarg" when not NULL.
Files:      src/eval.c


*** ../vim-9.0.0557/src/eval.c  2022-09-23 13:27:47.930575182 +0100
--- src/eval.c  2022-09-23 16:36:02.956411510 +0100
***************
*** 6380,6386 ****
            **arg = NUL;
  
            idx = find_exported(rettv->vval.v_number, exp_name, &ufunc, &type,
!                           evalarg->eval_cctx, evalarg->eval_cstack, verbose);
            **arg = cc;
  
            if (idx < 0 && ufunc == NULL)
--- 6380,6387 ----
            **arg = NUL;
  
            idx = find_exported(rettv->vval.v_number, exp_name, &ufunc, &type,
!                      evalarg == NULL ? NULL : evalarg->eval_cctx,
!                      evalarg == NULL ? NULL : evalarg->eval_cstack, verbose);
            **arg = cc;
  
            if (idx < 0 && ufunc == NULL)
*** ../vim-9.0.0557/src/version.c       2022-09-23 16:11:33.205103369 +0100
--- src/version.c       2022-09-23 16:36:52.788259690 +0100
***************
*** 701,702 ****
--- 701,704 ----
  {   /* Add new patch number below this line */
+ /**/
+     558,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
143. You dream in pallettes of 216 websafe colors.

 /// 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/20220923153801.3DE831C063B%40moolenaar.net.

Raspunde prin e-mail lui