summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-08 01:11:44 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-08 01:11:44 +0000
commit976ef375376ba93630995e81d409fdba5fc17278 (patch)
tree0baf9221bf87d79f41f020ce053dce0f504cbac4 /toke.c
parent562d31b88ec866a9804ab829f5cc992f3ccf2c2f (diff)
downloadperl-976ef375376ba93630995e81d409fdba5fc17278.tar.gz
longstanding typo in lexer: PL_lex_expect was not properly
saved on reentry p4raw-id: //depot/perl@4663
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 8eac820baa..a1704dcdc1 100644
--- a/toke.c
+++ b/toke.c
@@ -381,7 +381,7 @@ Perl_lex_start(pTHX_ SV *line)
SAVEI32(PL_sublex_info.sub_inwhat);
SAVESPTR(PL_lex_repl);
SAVEDESTRUCTOR_X(restore_expect, PL_tokenbuf + PL_expect); /* encode as pointer */
- SAVEDESTRUCTOR_X(restore_lex_expect, PL_tokenbuf + PL_expect);
+ SAVEDESTRUCTOR_X(restore_lex_expect, PL_tokenbuf + PL_lex_expect);
PL_lex_state = LEX_NORMAL;
PL_lex_defer = 0;