Skip to content

Commit

Permalink
patch 8.2.4075: test failures
Browse files Browse the repository at this point in the history
Problem:    Test failures.
Solution:   Change check for NULL pointer.
  • Loading branch information
brammool committed Jan 13, 2022
1 parent de05bb2 commit 78a7053
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/userfunc.c
Expand Up @@ -4152,13 +4152,11 @@ define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free)
else
eap->skip = TRUE;
}
if (name == NULL)
goto ret_free; // out of memory

// For "export def FuncName()" in an autoload script the function name
// is stored with the legacy autoload name "dir#script#FuncName" so
// that it can also be found in legacy script.
if (is_export)
if (is_export && name != NULL)
name = may_prefix_autoload(name);
}

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4075,
/**/
4074,
/**/
Expand Down

0 comments on commit 78a7053

Please sign in to comment.