summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 18:38:39 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 18:38:39 +0000
commite62f0680cdecd36f79df8a7dabc61c6a2739f07a (patch)
tree28d33b79419a95800569ff331a2eec4bf0e66524 /gv.c
parent9ce348e89750366600d8292ab1f0f55948ddb66e (diff)
downloadperl-e62f0680cdecd36f79df8a7dabc61c6a2739f07a.tar.gz
More SvPV consting.
p4raw-id: //depot/perl@24740
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gv.c b/gv.c
index f757f4c339..68dbd720c1 100644
--- a/gv.c
+++ b/gv.c
@@ -498,7 +498,7 @@ Perl_gv_autoload4(pTHX_ HV *stash, const char *name, STRLEN len, I32 method)
return Nullgv;
if (stash) {
if (SvTYPE(stash) < SVt_PVHV) {
- packname = SvPV((SV*)stash, packname_len);
+ packname = SvPV_const((SV*)stash, packname_len);
stash = Nullhv;
}
else {
@@ -1865,7 +1865,7 @@ bool
Perl_is_gv_magical_sv(pTHX_ SV *name, U32 flags)
{
STRLEN len;
- const char *temp = SvPV(name, len);
+ const char *temp = SvPV_const(name, len);
return is_gv_magical(temp, len, flags);
}