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:
44d2230
)
The old COW code needs to use SvPVX_mutable when doing copy-on-write.
author
Nicholas Clark
<nick@ccl4.org>
Wed, 8 Jun 2005 22:45:39 +0000
(22:45 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 8 Jun 2005 22:45:39 +0000
(22:45 +0000)
p4raw-id: //depot/perl@24768
sv.c
patch
|
blob
|
blame
|
history
diff --git
a/sv.c
b/sv.c
index
52f1da3
..
f6877f4
100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-4541,7
+4541,7
@@
Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags)
/* splice us in between source and next-after-source. */
SV_COW_NEXT_SV_SET(dstr, SV_COW_NEXT_SV(sstr));
SV_COW_NEXT_SV_SET(sstr, dstr);
- SvPV_set(dstr, SvPVX(sstr));
+ SvPV_set(dstr, SvPVX
_mutable
(sstr));
} else
#endif
{
@@
-4710,7
+4710,7
@@
Perl_sv_setsv_cow(pTHX_ SV *dstr, SV *sstr)
SV_COW_NEXT_SV_SET(dstr, sstr);
}
SV_COW_NEXT_SV_SET(sstr, dstr);
- new_pv = SvPVX(sstr);
+ new_pv = SvPVX
_mutable
(sstr);
common_exit:
SvPV_set(dstr, new_pv);