summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-10 23:12:29 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-10 23:12:29 +0000
commitcfd0369c40b647df9444518ec26b924a57e14ac8 (patch)
tree688266bb3bff13d1164c071a95ed34e1cd649038 /taint.c
parent349d4f2f3d114fbec6897c6007862eb07a409a2d (diff)
downloadperl-cfd0369c40b647df9444518ec26b924a57e14ac8.tar.gz
More SvPV consting. And other related drive-by refactoring.
p4raw-id: //depot/perl@24800
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/taint.c b/taint.c
index 5ed1eaf7bd..6acad15980 100644
--- a/taint.c
+++ b/taint.c
@@ -145,7 +145,7 @@ Perl_taint_env(pTHX)
if (svp && *svp && SvTAINTED(*svp)) {
STRLEN len;
const bool was_tainted = PL_tainted;
- const char *t = SvPV(*svp, len);
+ const char *t = SvPV_const(*svp, len);
const char *e = t + len;
PL_tainted = was_tainted;
if (t < e && isALNUM(*t))