summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-24 23:04:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-24 23:04:04 +0000
commit91b24525983f466ac8b293790a066f45e4880067 (patch)
tree6920d4fa7298cba74295b6d8c442ace064165734 /eval.c
parentc94a13f8e34a4cf49b9a28a619d0e465cbbb9fcc (diff)
downloadruby-91b24525983f466ac8b293790a066f45e4880067.tar.gz
ruby-91b24525983f466ac8b293790a066f45e4880067.tar.xz
ruby-91b24525983f466ac8b293790a066f45e4880067.zip
* eval.c (get_backtrace): ignore illegal backtrace. [ruby-dev:24587]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 392bd50ea..9b8aaf065 100644
--- a/eval.c
+++ b/eval.c
@@ -1078,7 +1078,7 @@ get_backtrace(info)
VALUE info;
{
if (NIL_P(info)) return Qnil;
- return rb_funcall(info, rb_intern("backtrace"), 0);
+ return rb_check_array_type(rb_funcall(info, rb_intern("backtrace"), 0));
}
static void