diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-24 05:22:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-24 05:22:23 +0000 |
commit | 6f968cab1508cdf04250db661e5122e53364d135 (patch) | |
tree | 00c3e652be8d2f88d205cfc0c5d312f76ea9cac3 /load.c | |
parent | 1d44d10b48bb812bf57fd657a2ac8960f9ba69c7 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |