diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-08 22:48:00 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-08 22:48:00 +0000 |
commit | d526390560c1ae208a087ad4d648b08895f79f8f (patch) | |
tree | 461f01c4dc1a61eaf8c2ccaaee2b249d7e873872 /op.c | |
parent | 940132f3fde5cf1c168dc34e3a3fea4e825977d5 (diff) | |
download | perl-d526390560c1ae208a087ad4d648b08895f79f8f.tar.gz |
More SvPV consting
p4raw-id: //depot/perl@24769
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |