diff options
Diffstat (limited to 'eval_method.h')
-rw-r--r-- | eval_method.h | 2 |
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)); } } |