summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 106f2c95aa..31b9bd1b65 100644
--- a/eval.c
+++ b/eval.c
@@ -333,7 +333,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level)
POP_TAG();
rb_set_safe_level_force(safe);
- th_jump_tag_but_local_jump(state, val);
+ if (state) th_jump_tag_but_local_jump(state, val);
return val;
}