ucode: initialize default library search path
authorJo-Philipp Wich <jo@mein.io>
Fri, 12 Aug 2022 18:55:44 +0000 (20:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 12 Aug 2022 18:55:44 +0000 (20:55 +0200)
Recent ucode versions require us to explicitly initialize the search path
structure in the parser config.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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);