diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-08-12 21:30:18 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-08-12 21:30:18 +0200 |
commit | e3395cd90bed9b7b9fc319e79528fedcc0d947fe (patch) | |
tree | 1a7fad5b0343245b16d1670e2346a1ed4b325352 | |
parent | 8cb3f85bdfef35e62f98d7d8b300eaedb6b1b20b (diff) |
ucode: initialize search path before VM init
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>
-rw-r--r-- | ucode.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,9 +229,9 @@ uh_ucode_state_init(struct ucode_prefix *ucode) 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); |