summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-08 22:48:00 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-08 22:48:00 +0000
commitd526390560c1ae208a087ad4d648b08895f79f8f (patch)
tree461f01c4dc1a61eaf8c2ccaaee2b249d7e873872 /op.c
parent940132f3fde5cf1c168dc34e3a3fea4e825977d5 (diff)
downloadperl-d526390560c1ae208a087ad4d648b08895f79f8f.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24769
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/op.c b/op.c
index 3728073661..12a8c25f57 100644
--- a/op.c
+++ b/op.c
@@ -6781,7 +6781,7 @@ Perl_peep(pTHX_ register OP *o)
SV *lexname;
GV **fields;
SV **svp, *sv;
- char *key = NULL;
+ const char *key = NULL;
STRLEN keylen;
o->op_opt = 1;
@@ -6792,7 +6792,7 @@ Perl_peep(pTHX_ register OP *o)
/* Make the CONST have a shared SV */
svp = cSVOPx_svp(((BINOP*)o)->op_last);
if ((!SvFAKE(sv = *svp) || !SvREADONLY(sv)) && !IS_PADCONST(sv)) {
- key = SvPV(sv, keylen);
+ key = SvPV_const(sv, keylen);
lexname = newSVpvn_share(key,
SvUTF8(sv) ? -(I32)keylen : keylen,
0);