diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | eval_method.h | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Jan 5 15:58:15 2007 Koichi Sasada <ko1@atdot.net> + + * eval_method.h (rb_alias) : fix to check search result + Fri Jan 5 13:59:53 2007 Koichi Sasada <ko1@atdot.net> * eval_method.h (rb_add_method) : fix to check old_node 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)); } } |