This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7806ee
)
ext/PerlIO-encoding: use SvPVCLEAR()
author
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 08:50:58 +0000
(10:50 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 11:28:00 +0000
(13:28 +0200)
ext/PerlIO-encoding/encoding.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/PerlIO-encoding/encoding.xs
b/ext/PerlIO-encoding/encoding.xs
index
1101bf1
..
bb4754f
100644
(file)
--- a/
ext/PerlIO-encoding/encoding.xs
+++ b/
ext/PerlIO-encoding/encoding.xs
@@
-203,7
+203,7
@@
PerlIOEncode_get_base(pTHX_ PerlIO * f)
e->base.bufsiz = 1024;
if (!e->bufsv) {
e->bufsv = newSV(e->base.bufsiz);
-
sv_setpvs(e->bufsv, ""
);
+
SvPVCLEAR(e->bufsv
);
}
e->base.buf = (STDCHAR *) SvPVX(e->bufsv);
if (!e->base.ptr)