summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-19 17:52:41 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-19 17:52:41 +0900
commit2ed31892a89833d5817896610517326e07ba1213 (patch)
tree1aa56848857fafa88cf6f5fb0cd4b64a9740572b /src/parse.y
parent59da9f6974d1f239bc783dcd2cb0640ced6d0030 (diff)
downloadmruby-2ed31892a89833d5817896610517326e07ba1213.tar.gz
mruby-2ed31892a89833d5817896610517326e07ba1213.zip
should initialize p->sterm every parse time
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y
index 2b2dd6851..4b1f02106 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4634,6 +4634,7 @@ mrb_parser_parse(parser_state *p)
p->cmd_start = TRUE;
p->in_def = p->in_single = FALSE;
p->nerr = p->nwarn = 0;
+ p->sterm = 0;
yyparse(p);
tree = p->tree;