summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 18:15:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 18:15:52 +0000
commite4fae8da4beeb7b61a9c3b58d66a4e594f0e73fa (patch)
tree90792cf8ee88dfaff3722e990e900d422f8f875f /variable.c
parent77f8b0db8d6b95fde7ca8b7a9dcd0f42f0f97af5 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index cd9fe0d48e..871f715d03 100644
--- a/variable.c
+++ b/variable.c
@@ -1053,6 +1053,10 @@ rb_autoload_load(id)
VALUE module;
st_delete(autoload_tbl, &id, &modname);
+ if (rb_provided(modname)) {
+ free(modname);
+ return;
+ }
module = rb_str_new2(modname);
free(modname);
FL_UNSET(module, FL_TAINT);