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:
a6c1bb3
)
Fix for SEGV in ext/B/t/xref.t on OpenBSD
author
Steve Peters
<steve@fisharerojo.org>
Tue, 14 Jun 2005 08:16:38 +0000
(
03:16
-0500)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Tue, 14 Jun 2005 13:22:20 +0000
(13:22 +0000)
Message-ID: <
20050614131638
.GA24771@mccoy.peters.homeunix.org>
p4raw-id: //depot/perl@24838
ext/B/B.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/B.xs
b/ext/B/B.xs
index
cedaf08
..
d317fb9
100644
(file)
--- a/
ext/B/B.xs
+++ b/
ext/B/B.xs
@@
-1214,8
+1214,8
@@
SvPV(sv)
B::PV sv
CODE:
ST(0) = sv_newmortal();
- if( SvPOK(sv) ) {
- sv_setpv
n(ST(0), SvPVX_const(sv), SvCUR
(sv));
+ if( SvPOK(sv) ) {
+ sv_setpv
(ST(0), SvPV_nolen_const
(sv));
SvFLAGS(ST(0)) |= SvUTF8(sv);
}
else {