diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-22 22:39:47 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-22 22:39:47 -0800 |
commit | 3a482d8d6250628185cb4de79a85f353ba799a58 (patch) | |
tree | 73f23180f51545b880bec52716c162ea7cd9f7c1 /sv.c | |
parent | 1ef8987b48398aed58d54d2cf83033cbbb7f3d7f (diff) | |
download | perl-3a482d8d6250628185cb4de79a85f353ba799a58.tar.gz |
sv_force_normal: Don’t confuse regexps with cows
Otherwise we get assertion failures and possibly corrupt
string tables.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4797,7 +4797,7 @@ Perl_sv_force_normal_flags(pTHX_ register SV *const sv, const U32 flags) } #else if (SvREADONLY(sv)) { - if (SvFAKE(sv) && !isGV_with_GP(sv)) { + if (SvIsCOW(sv)) { const char * const pvx = SvPVX_const(sv); const STRLEN len = SvCUR(sv); SvFAKE_off(sv); |