summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-22 09:19:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-22 09:19:57 +0000
commit9123ec551d6616b7e08a3be89c2dad666b034e81 (patch)
tree9f956467b4b2af7a48441f3ff6b8ff314dcb2398 /eval.c
parent285cb99ba493a113098b78c9989cba5a870f2435 (diff)
* eval.c (rb_mod_nesting): should not include Object at the
toplevel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1276 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 fd7c3dde30..63ad891534 100644
--- a/eval.c
+++ b/eval.c
@@ -1467,7 +1467,7 @@ rb_mod_nesting()
NODE *cbase = RNODE(ruby_frame->cbase);
VALUE ary = rb_ary_new();
- while (cbase) {
+ while (cbase && cbase->nd_next) {
rb_ary_push(ary, cbase->nd_clss);
cbase = cbase->nd_next;
}