From 8147a76b23bdbfa804f5aad873e92355876f774b Mon Sep 17 00:00:00 2001 From: nagachika Date: Thu, 17 Feb 2011 15:08:36 +0000 Subject: [PATCH] * iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info with nil. this fix exception in rb_iseq_load(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ iseq.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 58da152942..99c056c731 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 17 23:54:29 2011 CHIKANAGA Tomoyuki + + * iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info + with nil. this fix exception in rb_iseq_load(). + Thu Feb 17 22:32:35 2011 CHIKANAGA Tomoyuki * test/ruby/test_marshal.rb (test_marshal_dump_extra_iv): diff --git a/iseq.c b/iseq.c index f563e95e54..b821c602a3 100644 --- a/iseq.c +++ b/iseq.c @@ -250,6 +250,7 @@ prepare_iseq_build(rb_iseq_t *iseq, iseq->compile_data = ALLOC(struct iseq_compile_data); MEMZERO(iseq->compile_data, struct iseq_compile_data, 1); + iseq->compile_data->err_info = Qnil; iseq->compile_data->mark_ary = rb_ary_tmp_new(3); iseq->compile_data->storage_head = iseq->compile_data->storage_current =