mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4075: test failures
Problem: Test failures. Solution: Change check for NULL pointer.
This commit is contained in:
@@ -4152,13 +4152,11 @@ define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free)
|
|||||||
else
|
else
|
||||||
eap->skip = TRUE;
|
eap->skip = TRUE;
|
||||||
}
|
}
|
||||||
if (name == NULL)
|
|
||||||
goto ret_free; // out of memory
|
|
||||||
|
|
||||||
// For "export def FuncName()" in an autoload script the function name
|
// For "export def FuncName()" in an autoload script the function name
|
||||||
// is stored with the legacy autoload name "dir#script#FuncName" so
|
// is stored with the legacy autoload name "dir#script#FuncName" so
|
||||||
// that it can also be found in legacy script.
|
// that it can also be found in legacy script.
|
||||||
if (is_export)
|
if (is_export && name != NULL)
|
||||||
name = may_prefix_autoload(name);
|
name = may_prefix_autoload(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4075,
|
||||||
/**/
|
/**/
|
||||||
4074,
|
4074,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user