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 e14215f7a73..bc10513a568 100644
--- a/eval.c
+++ b/eval.c
@@ -2828,7 +2828,7 @@ rb_eval(self, n)
POP_TAG();
if (state) JUMP_TAG(state);
/* no exception raised */
- if (node = node->nd_else) { /* else clause given */
+ if (!rescuing && (node = node->nd_else)) { /* else clause given */
goto again;
}
}