# HG changeset patch # User Bram Moolenaar # Date 1642080604 -3600 # Node ID 6d063974af238648ed4752cd5b8e14a073b4f087 # Parent f134df73b2ce5b25c93b935d522dc9bf7c848413 patch 8.2.4075: test failures Commit: https://github.com/vim/vim/commit/78a70533c3707aa50cbf998c7807221945aa9787 Author: Bram Moolenaar Date: Thu Jan 13 13:24:34 2022 +0000 patch 8.2.4075: test failures Problem: Test failures. Solution: Change check for NULL pointer. diff --git a/src/userfunc.c b/src/userfunc.c --- a/src/userfunc.c +++ b/src/userfunc.c @@ -4152,13 +4152,11 @@ define_function(exarg_T *eap, char_u *na 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); } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4075, +/**/ 4074, /**/ 4073,