diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-31 02:12:33 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-31 02:12:33 +0000 |
commit | eece2be9fdee5b1ed963149f7732d232652ef519 (patch) | |
tree | a5d6208ad099ffddbe48708e467e9a9d3cc9c1b7 /load.c | |
parent | 0771e527ffcea1697df42bde4e927594657fa906 (diff) |
merges r30789 from trunk into ruby_1_9_2. Fixes #4446.
--
* load.c (rb_get_expanded_load_path): always expand load paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -40,14 +40,6 @@ rb_get_expanded_load_path(void) VALUE ary; long i; - for (i = 0; i < RARRAY_LEN(load_path); ++i) { - VALUE str = rb_check_string_type(RARRAY_PTR(load_path)[i]); - if (NIL_P(str) || !rb_is_absolute_path(RSTRING_PTR(str))) - goto relative_path_found; - } - return load_path; - - relative_path_found: ary = rb_ary_new2(RARRAY_LEN(load_path)); for (i = 0; i < RARRAY_LEN(load_path); ++i) { VALUE path = rb_file_expand_path(RARRAY_PTR(load_path)[i], Qnil); |