aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4bdbbc55..844052f1 100644
--- a/main.c
+++ b/main.c
@@ -638,10 +638,13 @@ out:
if (os_isatty(fileno(stdout)))
output_is_tty = true;
+ /* initialize API before loading extension libraries */
+ init_ext_api();
+
/* load extension libs */
for (s = srcfiles->next; s != srcfiles; s = s->next) {
if (s->stype == SRC_EXTLIB)
- (void) load_ext(s->fullpath, "dlload", NULL);
+ (void) load_ext(s->fullpath, "dl_load");
else if (s->stype != SRC_INC)
have_srcfile++;
}