summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-06 14:25:42 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-06 14:25:42 -0800
commit0528fd32099f4f9feef17f454cf9893101872c64 (patch)
treeac3467eafaca5cdd3f2b45bb1796a51be11cfde6 /toke.c
parente368b3bddfac0a2de936fe626b4a3221d42bc756 (diff)
downloadperl-0528fd32099f4f9feef17f454cf9893101872c64.tar.gz
toke.c:lex_start: Move len into the only block that uses it
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 7a8c76344d..aec710176d 100644
--- a/toke.c
+++ b/toke.c
@@ -683,7 +683,6 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, U32 flags)
{
dVAR;
const char *s = NULL;
- STRLEN len;
yy_parser *parser, *oparser;
if (flags && flags & ~LEX_START_FLAGS)
Perl_croak(aTHX_ "Lexing code internal error (%s)", "lex_start");
@@ -724,6 +723,7 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, U32 flags)
*parser->lex_casestack = '\0';
if (line) {
+ STRLEN len;
s = SvPV_const(line, len);
parser->linestr = flags & LEX_START_COPIED
? SvREFCNT_inc_simple_NN(line)