mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4269: Coverity warns for using a NULL pointer
Problem: Coverity warns for using a NULL pointer. Solution: Check for "name" to not be NULL.
This commit is contained in:
@@ -4232,7 +4232,8 @@ define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free)
|
||||
name = prefixed;
|
||||
}
|
||||
}
|
||||
else if (vim9script && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
|
||||
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;
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4269,
|
||||
/**/
|
||||
4268,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user