summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-06-23 06:43:25 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-06-23 06:43:25 -0700
commit017c5e4e9b62adc664bb68e00c066f64cd8bc760 (patch)
tree9a676fc600103c6b7b46f4db6928bfa91c66b688 /gv.c
parentacc19697c67fa63c10e07491b670a26c48f4175f (diff)
downloadperl-017c5e4e9b62adc664bb68e00c066f64cd8bc760.tar.gz
gv.c:gv_fetchmethod_pvn_flags: Avoid unnecessary extra SV
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 0d383ff659..86d34b131b 100644
--- a/gv.c
+++ b/gv.c
@@ -1038,7 +1038,7 @@ Perl_gv_fetchmethod_pvn_flags(pTHX_ HV *stash, const char *name, const STRLEN le
packnamesv = newSVpvn_flags(origname, nsplit - origname,
SVs_TEMP | is_utf8);
} else {
- packnamesv = sv_2mortal(newSVsv(error_report));
+ packnamesv = error_report;
}
Perl_croak(aTHX_