ucode: initialize default library search path
[project/uhttpd.git] / ucode.c
diff --git a/ucode.c b/ucode.c
index c03b6f0eb842e711e09f3b7f5557f64c6f3fb811..01de012a482d2f80a66268dfacd66b0246c57f82 100644 (file)
--- a/ucode.c
+++ b/ucode.c
@@ -231,6 +231,7 @@ uh_ucode_state_init(struct ucode_prefix *ucode)
 
        uc_vm_init(vm, &config);
        uc_stdlib_load(uc_vm_scope_get(vm));
+       uc_search_path_init(&config.module_search_path);
 
        /* build uhttpd api table */
        v = ucv_object_new(vm);