summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
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 c3e7bb3258..4f4c646b94 100644
--- a/vm.c
+++ b/vm.c
@@ -379,7 +379,7 @@ vm_set_main_stack(rb_thread_t *th, const rb_iseq_t *iseq)
vm_set_eval_stack(th, iseq, 0, &env->block);
/* save binding */
- if (bind && iseq->body->local_size > 0) {
+ if (iseq->body->local_size > 0) {
bind->env = vm_make_env_object(th, th->cfp);
}
}