summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-29 04:22:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-29 04:22:55 +0000
commite6f86c982f210ed9f97f4afa8e3c9cab6c31351d (patch)
tree24bf5c386218bb185381a0975cd39d9598eee7cd /vm.c
parentb9432e7630f3a85944730b3ba1b1aa4a8a753612 (diff)
* vm.c (rb_thread_method_id_and_class): curried proc has no
method. [ruby-core:31871] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 558e9805f6..5d249e584e 100644
--- a/vm.c
+++ b/vm.c
@@ -1394,7 +1394,7 @@ rb_thread_method_id_and_class(rb_thread_t *th,
{
rb_control_frame_t *cfp = th->cfp;
rb_iseq_t *iseq = cfp->iseq;
- if (!iseq) {
+ if (!iseq && cfp->me) {
if (idp) *idp = cfp->me->def->original_id;
if (klassp) *klassp = cfp->me->klass;
return 1;