summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--iseq.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 05f73ee81f..9688c32f91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun May 2 12:04:30 2010 wanabe <s.wanabe@gmail.com>
+
+ * iseq.c (iseq_load): allow filepath to be nil.
+
Sun May 2 08:54:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value instead
diff --git a/iseq.c b/iseq.c
index c26850c045..51891b2ce1 100644
--- a/iseq.c
+++ b/iseq.c
@@ -465,7 +465,8 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt)
name = CHECK_STRING(rb_ary_entry(data, i++));
filename = CHECK_STRING(rb_ary_entry(data, i++));
- filepath = CHECK_STRING(rb_ary_entry(data, i++));
+ filepath = rb_ary_entry(data, i++);
+ filepath = NIL_P(filepath) ? Qnil : CHECK_STRING(filepath);
line_no = CHECK_INTEGER(rb_ary_entry(data, i++));
type = CHECK_SYMBOL(rb_ary_entry(data, i++));