diff options
author | Josh ben Jore <jjore@cpan.org> | 2010-07-13 21:33:34 -0700 |
---|---|---|
committer | Josh ben Jore <jjore@cpan.org> | 2010-07-14 08:10:15 -0700 |
commit | f72e8700d8f634d185a0ab589cfaf62386cd6a21 (patch) | |
tree | 0301d19fb140a107a044e5ff5f11e829b5d25db0 /pp_hot.c | |
parent | 8e43ec2a83e92726f8f1ba38f6dab4a1d7b231d6 (diff) | |
download | perl-f72e8700d8f634d185a0ab589cfaf62386cd6a21.tar.gz |
Add x-ref from call site in do_readline() of sv_grow() to it's matching test in t/op/readline.t
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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)) { |