summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-08 15:39:40 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-08 15:39:40 +0000
commit8b6b16e72bf4dd30bd09781ad50e9f66fd94440b (patch)
treee4f7d3a25be8a7b00eb3fc485a6669b2cde6206c /taint.c
parent13c5b33cae5690f108494286e4d841e38c57677d (diff)
downloadperl-8b6b16e72bf4dd30bd09781ad50e9f66fd94440b.tar.gz
Nuke some more n_a, and convert S_gv_ename from char * to const char *
p4raw-id: //depot/perl@24760
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/taint.c b/taint.c
index 209efb3eec..5ed1eaf7bd 100644
--- a/taint.c
+++ b/taint.c
@@ -143,10 +143,10 @@ Perl_taint_env(pTHX)
/* tainted $TERM is okay if it contains no metachars */
svp = hv_fetch(GvHVn(PL_envgv),"TERM",4,FALSE);
if (svp && *svp && SvTAINTED(*svp)) {
- STRLEN n_a;
+ STRLEN len;
const bool was_tainted = PL_tainted;
- char *t = SvPV(*svp, n_a);
- char *e = t + n_a;
+ const char *t = SvPV(*svp, len);
+ const char *e = t + len;
PL_tainted = was_tainted;
if (t < e && isALNUM(*t))
t++;