X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=taint.c;h=719cce311090be7350cf21f90d3cb1d6a9efa939;hb=bb21036d6b2cd6d93d4c5c77bf58ceedb8b0d45c;hp=034c6e39059de01181e79bb8f16d5e89df447a90;hpb=1129b882ced9d5881a47214405219a2e6e332a92;p=p5sagit%2Fp5-mst-13.2.git diff --git a/taint.c b/taint.c index 034c6e3..719cce3 100644 --- a/taint.c +++ b/taint.c @@ -9,9 +9,11 @@ */ /* - * "...we will have peace, when you and all your works have perished--and - * the works of your dark master to whom you would deliver us. You are a - * liar, Saruman, and a corrupter of men's hearts." --Theoden + * '...we will have peace, when you and all your works have perished--and + * the works of your dark master to whom you would deliver us. You are a + * liar, Saruman, and a corrupter of men's hearts.' --Théoden + * + * [p.580 of _The Lord of the Rings_, III/x: "The Voice of Saruman"] */ /* This file contains a few functions for handling data tainting in Perl @@ -97,7 +99,7 @@ Perl_taint_env(pTHX) /* If there's no %ENV hash of if it's not magical, croak, because * it probably doesn't reflect the actual environment */ if (!GvHV(PL_envgv) || !(SvRMAGICAL(GvHV(PL_envgv)) - && mg_find((SV*)GvHV(PL_envgv), PERL_MAGIC_env))) { + && mg_find((const SV *)GvHV(PL_envgv), PERL_MAGIC_env))) { const bool was_tainted = PL_tainted; const char * const name = GvENAME(PL_envgv); PL_tainted = TRUE;