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:
8e43ec2
)
Add x-ref from call site in do_readline() of sv_grow() to it's matching test in t...
author
Josh ben Jore
<jjore@cpan.org>
Wed, 14 Jul 2010 04:33:34 +0000
(21:33 -0700)
committer
Josh ben Jore
<jjore@cpan.org>
Wed, 14 Jul 2010 15:10:15 +0000
(08:10 -0700)
pp_hot.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_hot.c
b/pp_hot.c
index
6f48d5a
..
217ee26
100644
(file)
--- a/
pp_hot.c
+++ b/
pp_hot.c
@@
-1639,8
+1639,12
@@
Perl_do_readline(pTHX)
}
SvUPGRADE(sv, SVt_PV);
tmplen = SvLEN(sv); /* remember if already alloced */
- if (!tmplen && !SvREADONLY(sv))
- Sv_Grow(sv, 80); /* try short-buffering it */
+ if (!tmplen && !SvREADONLY(sv)) {
+ /* try short-buffering it. Please update t/op/readline.t
+ * if you change the growth length.
+ */
+ Sv_Grow(sv, 80);
+ }
offset = 0;
if (type == OP_RCATLINE && SvOK(sv)) {
if (!SvPOK(sv)) {