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:
28399f5
)
Stop sv_force_normal from crashing on ro globs under old cow
author
Father Chrysostomos
<sprout@cpan.org>
Tue, 2 Oct 2012 05:10:53 +0000
(22:10 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 3 Oct 2012 01:27:47 +0000
(18:27 -0700)
This allows t/lib/universal.t to pass under PERL_OLD_COPY_ON_WRITE.
sv.c
patch
|
blob
|
blame
|
history
diff --git
a/sv.c
b/sv.c
index
774154c
..
01ef3df
100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-4720,7
+4720,7
@@
Perl_sv_force_normal_flags(pTHX_ register SV *const sv, const U32 flags)
#ifdef PERL_OLD_COPY_ON_WRITE
if (SvREADONLY(sv)) {
- if (Sv
FAKE
(sv)) {
+ if (Sv
IsCOW
(sv)) {
const char * const pvx = SvPVX_const(sv);
const STRLEN len = SvLEN(sv);
const STRLEN cur = SvCUR(sv);