projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
The old COW code needs to use SvPVX_mutable when doing copy-on-write.
[p5sagit/p5-mst-13.2.git]
/
doop.c
diff --git
a/doop.c
b/doop.c
index
a5dcc68
..
b17da1a
100644
(file)
--- a/
doop.c
+++ b/
doop.c
@@
-1006,7
+1006,6
@@
Perl_do_chomp(pTHX_ register SV *sv)
{
register I32 count;
STRLEN len;
- STRLEN n_a;
char *s;
char *temp_buffer = NULL;
SV* svrecode = Nullsv;
@@
-1123,7
+1122,7
@@
Perl_do_chomp(pTHX_ register SV *sv)
count += rs_charlen;
}
}
- s = SvPV_force(sv, n_a);
+ s = SvPV_force_nolen(sv);
SvCUR_set(sv, len);
*SvEND(sv) = '\0';
SvNIOK_off(sv);