summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/load.c b/load.c
index 1d3ff23d55..eec5e98947 100644
--- a/load.c
+++ b/load.c
@@ -677,7 +677,7 @@ rb_load_protect(VALUE fname, int wrap, int *pstate)
}
POP_TAG();
- if (state != TAG_NONE) state = rb_load_internal0(GET_THREAD(), path, wrap);
+ if (state == TAG_NONE) state = rb_load_internal0(GET_THREAD(), path, wrap);
if (state != TAG_NONE) *pstate = state;
}