In S_save_scalar_at, remove oldtainted, unneeded since 0cbee0a449cc4e11.
authorNicholas Clark <nick@ccl4.org>
Wed, 13 Oct 2010 16:07:34 +0000 (17:07 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 13 Oct 2010 16:07:34 +0000 (17:07 +0100)
0cbee0a449cc4e11 removed the call to mg_get(), and hence any possibility of
calling code with the side effect of changing PL_tainted.

scope.c

diff --git a/scope.c b/scope.c
index 95fe5f7..0d07071 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -183,10 +183,8 @@ S_save_scalar_at(pTHX_ SV **sptr, const U32 flags)
 
     if (SvTYPE(osv) >= SVt_PVMG && SvMAGIC(osv) && SvTYPE(osv) != SVt_PVGV) {
        if (SvGMAGICAL(osv)) {
-           const bool oldtainted = PL_tainted;
            SvFLAGS(osv) |= (SvFLAGS(osv) &
               (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT;
-           PL_tainted = oldtainted;
        }
        if (!(flags & SAVEf_KEEPOLDELEM))
            mg_localize(osv, sv, (flags & SAVEf_SETMAGIC) != 0);