summaryrefslogtreecommitdiff
path: root/eval_method.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-05 07:02:48 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-05 07:02:48 +0000
commit20f8b25d1df4bfe1e7e23fbf3458f9742394b728 (patch)
tree9d99fb35b56abbe8a900f791d8f34c9151d32088 /eval_method.h
parentd880d4382ffca5a9deb083ba0acc69dfa5f5d306 (diff)
* eval_method.h (rb_alias) : fix to check search result
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_method.h')
-rw-r--r--eval_method.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_method.h b/eval_method.h
index 7f2c99d1ff..a99e6bea9a 100644
--- a/eval_method.h
+++ b/eval_method.h
@@ -561,7 +561,7 @@ rb_alias(VALUE klass, ID name, ID def)
if (RTEST(ruby_verbose) &&
st_lookup(RCLASS(klass)->m_tbl, name, (st_data_t *) & node)) {
- if (node->nd_cnt == 0 && node->nd_body) {
+ if (node && node->nd_cnt == 0 && node->nd_body) {
rb_warning("discarding old %s", rb_id2name(name));
}
}