Message-ID: <15016.38044.381174.160189@rls.cx>
EXISTS() returning undef mistakenly triggered a FETCH().
p4raw-id: //depot/perl@9090
if (SvRMAGICAL(hv)) {
if (mg_find((SV*)hv,'P')) {
+ SV* svret = sv_newmortal();
sv = sv_newmortal();
keysv = sv_2mortal(newSVsv(keysv));
mg_copy((SV*)hv, sv, (char*)keysv, HEf_SVKEY);
- magic_existspack(sv, mg_find(sv, 'p'));
- return SvTRUE(sv);
+ magic_existspack(svret, mg_find(sv, 'p'));
+ return SvTRUE(svret);
}
#ifdef ENV_IS_CASELESS
else if (mg_find((SV*)hv,'E')) {