aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-14 16:40:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-14 16:40:26 +0000
commit2568fd774baa8f26eeb9d36b01f2f907dc498ef3 (patch)
treeae28b8023f4604603f25455bb81bae8ded9f2c53 /load.c
parentf526784e1ee21f6d2b5d130673f5c3d96761f2bb (diff)
downloadruby-2568fd774baa8f26eeb9d36b01f2f907dc498ef3.tar.gz
load.c: call init
* load.c (register_init_ext): call initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/load.c b/load.c
index f31b7aeaca..811d03511f 100644
--- a/load.c
+++ b/load.c
@@ -1049,6 +1049,7 @@ register_init_ext(st_data_t *key, st_data_t *value, st_data_t init, int existing
else {
*value = (st_data_t)NEW_MEMO(init, 0, 0);
*key = (st_data_t)ruby_strdup(name);
+ (*(void (*)(void))init)();
}
return ST_CONTINUE;
}