summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
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);