summaryrefslogtreecommitdiff
path: root/universal.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-22 22:56:50 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-23 10:19:36 -0800
commit18984c14b373cb9ef631091f5c5e151e9b0971f0 (patch)
treec229a6544541b2f791ca61bc10060f0ec0970fa4 /universal.c
parent6dd7c1f1e9477c302194505f6e1aaa57121f68bd (diff)
downloadperl-18984c14b373cb9ef631091f5c5e151e9b0971f0.tar.gz
universal.c:XS_utf8_decode: rmv redundant code
SvPV_force_nolen already calls sv_force_normal for us.
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/universal.c b/universal.c
index f6da76d859..463651bb73 100644
--- a/universal.c
+++ b/universal.c
@@ -812,7 +812,6 @@ XS(XS_utf8_decode)
else {
SV * const sv = ST(0);
bool RETVAL;
- if (SvREADONLY(sv)) sv_force_normal(sv);
SvPV_force_nolen(sv);
RETVAL = sv_utf8_decode(sv);
ST(0) = boolSV(RETVAL);