summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-24 05:22:23 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-24 05:22:23 (GMT)
commit6f968cab1508cdf04250db661e5122e53364d135 (patch)
tree00c3e652be8d2f88d205cfc0c5d312f76ea9cac3 /load.c
parent1d44d10b48bb812bf57fd657a2ac8960f9ba69c7 (diff)
load.c: fix rb_load_protect condition
* load.c (rb_load_protect): fix the condition to load the found file. fixup of r59155. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 1d3ff23..eec5e98 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;
}