summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 01800a6016..be8c982228 100644
--- a/cont.c
+++ b/cont.c
@@ -1174,7 +1174,8 @@ rb_fiber_start(void)
}
else {
VALUE err = rb_vm_make_jump_tag_but_local_jump(state, th->errinfo);
- rb_threadptr_async_errinfo_enque(th, err);
+ if (!NIL_P(err))
+ rb_threadptr_async_errinfo_enque(th, err);
}
RUBY_VM_SET_INTERRUPT(th);
}