From: Vincent Pit Date: Thu, 26 Mar 2009 22:21:15 +0000 (+0100) Subject: Simplify the current temp test in the unmortalizer X-Git-Tag: v0.34~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=7d38c99468da03e65d5e4ab0784222cf39fba3b4;p=perl%2Fmodules%2FVariable-Magic.git Simplify the current temp test in the unmortalizer --- diff --git a/Magic.xs b/Magic.xs index f9587ab..858c80f 100644 --- a/Magic.xs +++ b/Magic.xs @@ -1034,8 +1034,7 @@ STATIC int vmg_wizard_free(pTHX_ SV *wiz, MAGIC *mg) { const I32 myfloor = PL_tmps_floor; I32 i; for (i = PL_tmps_ix; i > myfloor; --i) { - SV * const sv = PL_tmps_stack[i]; - if (sv && sv == wiz) + if (PL_tmps_stack[i] == wiz) PL_tmps_stack[i] = NULL; } }