summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index a661cb3d3b..950a02a206 100644
--- a/proc.c
+++ b/proc.c
@@ -2239,7 +2239,7 @@ method_def_location(const rb_method_definition_t *def)
VALUE
rb_method_entry_location(const rb_method_entry_t *me)
{
- if (!me || !me->def) return Qnil;
+ if (!me) return Qnil;
return method_def_location(me->def);
}