Problem: Setting ufunc to NULL twice.
Solution: Set ufunc to NULL in find_exported(). (closes #19275)
char_u *exp_name;
int cc;
int idx;
- ufunc_T *ufunc = NULL;
+ ufunc_T *ufunc;
type_T *type;
// Found script from "import {name} as name", script item name must
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4822,
/**/
4821,
/**/
svar_T *sv;
scriptitem_T *script = SCRIPT_ITEM(sid);
+ *ufunc = NULL;
+
if (script->sn_import_autoload && script->sn_state == SN_STATE_NOT_LOADED)
{
if (do_source(script->sn_name, FALSE, DOSO_NONE, NULL) == FAIL)
if (idx >= 0)
{
sv = ((svar_T *)script->sn_var_vals.ga_data) + idx;
- *ufunc = NULL;
if ((sv->sv_flags & SVFLAG_EXPORTED) == 0)
{
if (verbose)