summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-01-02 01:51:05 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-01-02 01:51:05 +0000
commit199e78b72f538ce004dd96ef2f457b84b88279cc (patch)
tree309f7138682f0b3373cad16cdf3482ad9cfe145e /perly.c
parent6ef55633ec162e15cc77d16a7154bf022d691dbc (diff)
downloadperl-199e78b72f538ce004dd96ef2f457b84b88279cc.tar.gz
move easy lexer state variables into PL_parser
(where "easy" == "only appear in toke.c") p4raw-id: //depot/perl@29655
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.c b/perly.c
index 36f78a346b..af09290581 100644
--- a/perly.c
+++ b/perly.c
@@ -195,7 +195,7 @@ S_clear_yystack(pTHX_ const yy_parser *parser)
yy_stack_frame *ps = parser->ps;
int i;
- if (ps == parser->stack)
+ if (!parser->stack || ps == parser->stack)
return;
YYDPRINTF ((Perl_debug_log, "clearing the parse stack\n"));