summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-03-25 08:43:31 -0600
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-03-25 21:02:04 +0000
commit74c2c9197ad0d0604ec36e8784283737dc74b7ee (patch)
treeb5e129b2bb73cff2818caf0fa6c7f60ce32a2635 /taint.c
parent907b329008b669a149db68033b0a8f2366fd0c39 (diff)
downloadperl-74c2c9197ad0d0604ec36e8784283737dc74b7ee.tar.gz
Consting part 4
Message-ID: <20050325204331.GA16388@petdance.com> p4raw-id: //depot/perl@24079
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/taint.c b/taint.c
index c2865facb9..f21aedcdb4 100644
--- a/taint.c
+++ b/taint.c
@@ -91,7 +91,7 @@ Perl_taint_env(pTHX)
if (!GvHV(PL_envgv) || !(SvRMAGICAL(GvHV(PL_envgv))
&& mg_find((SV*)GvHV(PL_envgv), PERL_MAGIC_env))) {
const bool was_tainted = PL_tainted;
- char *name = GvENAME(PL_envgv);
+ const char *name = GvENAME(PL_envgv);
PL_tainted = TRUE;
if (strEQ(name,"ENV"))
/* hash alias */
@@ -144,7 +144,7 @@ Perl_taint_env(pTHX)
svp = hv_fetch(GvHVn(PL_envgv),"TERM",4,FALSE);
if (svp && *svp && SvTAINTED(*svp)) {
STRLEN n_a;
- bool was_tainted = PL_tainted;
+ const bool was_tainted = PL_tainted;
char *t = SvPV(*svp, n_a);
char *e = t + n_a;
PL_tainted = was_tainted;