patch 8.2.4075: test failures v8.2.4075
authorBram Moolenaar <Bram@vim.org>
Thu, 13 Jan 2022 13:24:34 +0000 (13:24 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 13 Jan 2022 13:24:34 +0000 (13:24 +0000)
Problem:    Test failures.
Solution:   Change check for NULL pointer.

src/userfunc.c
src/version.c

index 4072349cb0eddce794470445c945ccb73c965476..fc6cea38ced7ac0ae063c1e1b57c932923969748 100644 (file)
@@ -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);
     }
 
index 1f4a031622401c3746282f5952cfad8d9abfdabf..ba6e5da087b09f85b946d506c95885f1edfe66b5 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4075,
 /**/
     4074,
 /**/