summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-03 07:34:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-03 07:34:24 +0000
commit3738f871aa74477e56920f0f43d59b31677db45d (patch)
tree13affbff6bfbb60b07e3dd7f7ad16c012bd8d42b /parse.y
parent6d0b44501edaa1ba10b58c7b9ca430d9a5d4049d (diff)
* parse.y (yycompile): zero clear ruby_eval_tree_begin if
compilation failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 73828b0..c1e75b3 100644
--- a/parse.y
+++ b/parse.y
@@ -2548,6 +2548,7 @@ yycompile(f, line)
rb_gc_force_recycle((VALUE)tmp);
}
if (n == 0) node = ruby_eval_tree;
+ else ruby_eval_tree_begin = 0;
return node;
}