Patch 8.2.4269
Problem:    Coverity warns for using a NULL pointer.
Solution:   Check for "name" to not be NULL.
Files:      src/userfunc.c


*** ../vim-8.2.4268/src/userfunc.c      2022-01-30 19:37:46.738366658 +0000
--- src/userfunc.c      2022-01-31 11:43:17.726772724 +0000
***************
*** 4232,4238 ****
                name = prefixed;
            }
        }
!       else if (vim9script && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
        {
            
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
            goto ret_free;
--- 4232,4239 ----
                name = prefixed;
            }
        }
!       else if (vim9script && name != NULL
!                                   && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
        {
            
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
            goto ret_free;
*** ../vim-8.2.4268/src/version.c       2022-01-31 11:38:49.982532692 +0000
--- src/version.c       2022-01-31 11:43:50.810299600 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4269,
  /**/

-- 
Eye have a spelling checker, it came with my PC;
It plainly marks four my revue mistakes I cannot sea.
I've run this poem threw it, I'm sure your please to no,
It's letter perfect in it's weigh, my checker tolled me sew!

 /// 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/20220131114517.2960E1C1918%40moolenaar.net.

Raspunde prin e-mail lui