aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-24 05:22:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-24 05:22:23 +0000
commite2b08026b75fa018630e6eef0f7c2a4990d5d0e0 (patch)
tree00c3e652be8d2f88d205cfc0c5d312f76ea9cac3 /load.c
parent1b9322fc9232114d2065b9c6199e1a4c38764f4f (diff)
downloadruby-e2b08026b75fa018630e6eef0f7c2a4990d5d0e0.tar.gz
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 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;
}