aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 19:51:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 19:51:38 +0000
commit5aa6ad9d9e7b15c8a6a99db88ec57c857b4e9a3f (patch)
treea18036a36e33516617bedc34c0948bd8fcb90d2e /class.c
parentd7d08dfcc42ed545f94a66a9bb39d2275be61e8f (diff)
downloadruby-5aa6ad9d9e7b15c8a6a99db88ec57c857b4e9a3f.tar.gz
* 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
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
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;