X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Magic.xs;h=24f8d5c97da6aa091ef6a5386c159a676b1ce803;hb=f80e249f673c39ee8ba0dd58b26a3d5384448b61;hp=8799958baade4e9af507b0bcd10c0ab7d6439431;hpb=938c75eca3b5b43540ce41e03f54d67e165fad74;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Magic.xs b/Magic.xs index 8799958..24f8d5c 100644 --- a/Magic.xs +++ b/Magic.xs @@ -269,10 +269,10 @@ STATIC I32 vmg_call_sv(pTHX_ SV *sv, I32 flags, int (*cleanup)(pTHX_ void *), vo #else ++PL_Ierror_count; #endif - } else if (!in_eval) { - if (!cleanup || cleanup(aTHX_ ud)) - croak(NULL); - } + } else if (!in_eval) { + if (!cleanup || cleanup(aTHX_ ud)) + croak(NULL); + } } else { if (old_err) { SvREFCNT_dec(ERRSV); @@ -1464,9 +1464,11 @@ PROTOTYPES: ENABLE BOOT: { HV *stash; + int c; MY_CXT_INIT; - MY_CXT.b__op_stashes[0] = NULL; + for (c = OPc_NULL; c < OPc_MAX; ++c) + MY_CXT.b__op_stashes[c] = NULL; #if VMG_THREADSAFE MUTEX_INIT(&vmg_vtable_refcount_mutex); MUTEX_INIT(&vmg_op_name_init_mutex);