diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-22 21:15:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-22 21:15:23 +0000 |
commit | 87c828e39eb49269ca367f1adaec9d07bfed8f4a (patch) | |
tree | 8e640718601a18a357557513cdf47afc481093d9 /iseq.c | |
parent | e12388713f498879e055b11b8b464556757a5be5 (diff) | |
download | ruby-87c828e39eb49269ca367f1adaec9d07bfed8f4a.tar.gz |
* iseq.c (rb_iseq_compile_with_option): get rid of segv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -443,7 +443,7 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt) rb_thread_t *th = GET_THREAD(); make_compile_option(&option, opt); - if (th->base_block) { + if (th->base_block && th->base_block->iseq) { return rb_iseq_new_with_opt(node, th->base_block->iseq->name, file, th->base_block->iseq->self, ISEQ_TYPE_EVAL, &option); |