summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-12 08:26:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-12 08:26:54 +0000
commit2e16e8a60e3ebdfe20e933c8447153915d474ee0 (patch)
tree8e1b4db3498af5956160868f7b3ce445ee42b326 /load.c
parent1297bedc5cdb869d0c9ed0580671917369de12c6 (diff)
* load.c (rb_feature_p): lazy assigned load_path searched in
loading_table were not expanded, but all features, pushed to loading table, are expanded. a patch by Yura Sokolov <funny.falcon AT gmail.com> in [ruby-core:41545]. [Bug #5727] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34013 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 9ed386d6c9..9f09dd548d 100644
--- a/load.c
+++ b/load.c
@@ -183,7 +183,7 @@ rb_feature_p(const char *feature, const char *ext, int rb, int expanded, const c
fs.name = feature;
fs.len = len;
fs.type = type;
- fs.load_path = load_path ? load_path : rb_get_load_path();
+ fs.load_path = load_path ? load_path : rb_get_expanded_load_path();
fs.result = 0;
st_foreach(loading_tbl, loaded_feature_path_i, (st_data_t)&fs);
if ((f = fs.result) != 0) {