}
}
}
- return;
+ goto reset;
}
hfreeentries(hv);
HvHASKFLAGS_off(hv);
HvREHASH_off(hv);
+ reset:
+ HvEITER(hv) = NULL;
}
/*
POPSTACK;
LEAVE;
- if (SvTYPE(sv) == SVt_PVHV)
- /* must reset iterator otherwise Perl_magic_scalarpack
- * wont report a false value on a cleared hash */
- HvEITER((HV*)sv) = NULL;
-
return 0;
}