summaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 06:46:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 06:46:31 +0000
commit6261e58116bb92dabf51460742de0aa177b297f6 (patch)
tree4aa96fb05b18df3231f438cbee3231241fc38d8f /load.c
parente8380aecdc022ab2c81d011833cb771dab259cea (diff)
downloadruby-6261e58116bb92dabf51460742de0aa177b297f6.tar.gz
ruby-6261e58116bb92dabf51460742de0aa177b297f6.tar.xz
ruby-6261e58116bb92dabf51460742de0aa177b297f6.zip
* load.c (rb_feature_provided): fixed for autoloading extension
library without suffix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/load.c b/load.c
index c58ebd8f6..57d5f3a9b 100644
--- a/load.c
+++ b/load.c
@@ -233,7 +233,7 @@ rb_feature_provided(const char *feature, const char **loading)
return FALSE;
}
}
- if (rb_feature_p(feature, feature + strlen(feature), TRUE, FALSE, loading))
+ if (rb_feature_p(feature, 0, TRUE, FALSE, loading))
return TRUE;
return FALSE;
}
@@ -473,7 +473,7 @@ search_required(VALUE fname, volatile VALUE *path, int safe_level)
OBJ_FREEZE(tmp);
if (rb_find_file_ext_safe(&tmp, loadable_ext + 1, safe_level)) {
ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
- if (!rb_feature_p(ftptr, ext, Qfalse, Qtrue, &loading) || loading)
+ if (!rb_feature_p(ftptr, ext, FALSE, TRUE, &loading) || loading)
*path = tmp;
return 's';
}