From 332210d4410b1b6aa520264e5f09bafa61626a73 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 3 Jun 2015 19:51:38 +0000 Subject: [PATCH] * class.c (method_entry_i): mtbl should not have `me' as NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ class.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 183fff5a0a..64b53c2237 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 4 04:50:12 2015 Koichi Sasada + + * class.c (method_entry_i): mtbl should not have `me' as NULL. + Thu Jun 4 04:28:45 2015 Koichi Sasada * class.c (clone_method): do not use me->klass, but use explicitly diff --git a/class.c b/class.c index 67efd6c5cc..1dea8b01d9 100644 --- a/class.c +++ b/class.c @@ -1123,7 +1123,7 @@ method_entry_i(st_data_t key, st_data_t value, st_data_t data) struct method_entry_arg *arg = (struct method_entry_arg *)data; rb_method_visibility_t type; - if (me && me->def->type == VM_METHOD_TYPE_REFINED) { + if (me->def->type == VM_METHOD_TYPE_REFINED) { VALUE klass = me->klass; me = rb_resolve_refined_method(Qnil, me, NULL); if (!me) return ST_CONTINUE;