summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-10-10 14:12:22 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-10 14:12:22 -0700
commit05b525f42a20fe4094336e751e3a99a866e0f97e (patch)
treecae1b27c696f6078e86f1c08b5a1a3ef92ec55a5 /gv.c
parent8fa6a40953ef88573ed3cbbb37666e7b72dec7dd (diff)
downloadperl-05b525f42a20fe4094336e751e3a99a866e0f97e.tar.gz
gv.c:gv_autoload_pvn: Avoid warning due to temp flag
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index 22d78c7664..77baacbcad 100644
--- a/gv.c
+++ b/gv.c
@@ -1207,6 +1207,7 @@ Perl_gv_autoload_pvn(pTHX_ HV *stash, const char *name, STRLEN len, U32 flags)
);
SvTEMP_on(tmpsv); /* Allow theft */
sv_setsv_nomg((SV *)cv, tmpsv);
+ SvTEMP_off(tmpsv);
SvREFCNT_dec(tmpsv);
SvLEN(cv) = SvCUR(cv) + 1;
SvCUR(cv) = ulen;