summaryrefslogtreecommitdiffstats
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
commit238245bc8e27895678679d0a7dae46e063e81dcf (patch)
tree90792cf8ee88dfaff3722e990e900d422f8f875f /variable.c
parent2feb32722dc1a0cc432691240e09ea2516df46bb (diff)
downloadruby-238245bc8e27895678679d0a7dae46e063e81dcf.tar.gz
ruby-238245bc8e27895678679d0a7dae46e063e81dcf.tar.xz
ruby-238245bc8e27895678679d0a7dae46e063e81dcf.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/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 cd9fe0d48..871f715d0 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);