summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-12 20:55:44 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-12 20:55:44 +0200
commit8cb3f85bdfef35e62f98d7d8b300eaedb6b1b20b (patch)
tree41c777112187c00913d3fa72f792feacb2586271
parent188dea23edf8b1646c662fa6ab8119f156da49a5 (diff)
ucode: initialize default library search path
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>
-rw-r--r--ucode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ucode.c b/ucode.c
index c03b6f0..01de012 100644
--- 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);