}
if (regdata) {
sv = Perl_reg_named_buff_sv(aTHX_ keysv);
- if (!sv) {
- SvREFCNT_dec(keysv);
- return 0;
- }
+ if (!sv)
+ sv = sv_newmortal();
} else {
sv = sv_newmortal();
mg_copy((SV*)hv, sv, (char *)keysv, HEf_SVKEY);
/* else we don't need to add magic to record 0 placeholders. */
}
-SV *
+STATIC SV *
S_refcounted_he_value(pTHX_ const struct refcounted_he *he)
{
dVAR;