Since the VM initialization copies the search path into a runtime array,
we must prepare the path beforehand.
Fixes: 8cb3f85 ("ucode: initialize default library search path")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uc_value_t *v;
int exitcode;
+ uc_search_path_init(&config.module_search_path);
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);