summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 1cee983351..e963225ae8 100644
--- a/vm.c
+++ b/vm.c
@@ -1303,6 +1303,7 @@ vm_exec(rb_thread_t *th)
cfp->sp + 1 /* push value */, cfp->lfp, catch_iseq->local_size - 1);
state = 0;
+ th->state = 0;
th->errinfo = Qnil;
goto vm_loop_start;
}