diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-13 13:24:34 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-13 13:24:34 +0000 |
commit | 78a70533c3707aa50cbf998c7807221945aa9787 (patch) | |
tree | d6f63adc4a7c3c854cea5ac325b4f05c9928e090 | |
parent | de05bb25733c3319e18dca44e9b59c6ee389eb26 (diff) |
patch 8.2.4075: test failuresv8.2.4075
Problem: Test failures.
Solution: Change check for NULL pointer.
-rw-r--r-- | src/userfunc.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index 4072349cb0..fc6cea38ce 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -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); } diff --git a/src/version.c b/src/version.c index 1f4a031622..ba6e5da087 100644 --- 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, |