diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 21:40:24 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 21:40:24 +0000 |
commit | 1845b36b50f75bfdedabdc2b0787e0e9c75c8588 (patch) | |
tree | 9359f228332c95a928c4c034b96650cb31eb6176 /eval.c | |
parent | 55c3f7b6440b3c49e39941876b9f07e913501675 (diff) |
* eval.c (get_backtrace): check the result more.
[ruby-dev:31261] [ruby-bugs-12398]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1200,6 +1200,8 @@ error_pos() } } +VALUE rb_check_backtrace(VALUE); + static VALUE get_backtrace(info) VALUE info; @@ -1207,7 +1209,7 @@ get_backtrace(info) if (NIL_P(info)) return Qnil; info = rb_funcall(info, rb_intern("backtrace"), 0); if (NIL_P(info)) return Qnil; - return rb_check_array_type(info); + return rb_check_backtrace(info); } static void |