diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-25 15:37:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-25 15:37:05 +0000 |
commit | b904e87f0857eb3d1c0fdc5a8fbc693221baefab (patch) | |
tree | a783b516179617d90d4b10edb9f51b7039456d1b /eval.c | |
parent | a1cb9efd343c9150260d457dfea0005166858690 (diff) | |
download | ruby-b904e87f0857eb3d1c0fdc5a8fbc693221baefab.tar.gz |
* eval.c (ruby_exec_internal): do nothing if no code.
* compile.c (rb_iseq_compile): check node if NULL before check
nd_type. [ruby-talk:252956]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -204,6 +204,8 @@ ruby_exec_internal(void) { int state; VALUE val; + + if (!ruby_eval_tree) return 0; PUSH_TAG(); if ((state = EXEC_TAG()) == 0) { GET_THREAD()->base_block = 0; |