summaryrefslogtreecommitdiffhomepage
path: root/src/wasm/nxt_wasm.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-10-10 20:54:39 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-10-10 20:54:39 +0100
commit8f6449f4e0152d9644b807cf2208e3734a0f8b4d (patch)
tree266081fadb3ca5131e22452e315f6a6dd544d32e /src/wasm/nxt_wasm.c
parent01d185cb52af8879aeeab04765eff439feec664c (diff)
downloadunit-8f6449f4e0152d9644b807cf2208e3734a0f8b4d.tar.gz
unit-8f6449f4e0152d9644b807cf2208e3734a0f8b4d.tar.bz2
[WIP] Wasm: Add a WAMR based language modulewasm
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/wasm/nxt_wasm.c')
-rw-r--r--src/wasm/nxt_wasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm/nxt_wasm.c b/src/wasm/nxt_wasm.c
index 92ed57ab..b2827bd6 100644
--- a/src/wasm/nxt_wasm.c
+++ b/src/wasm/nxt_wasm.c
@@ -292,6 +292,7 @@ nxt_wasm_setup(nxt_task_t *task, nxt_process_t *process,
nxt_wasm_ctx.dirs[i] = nxt_zalloc(str.length + 1);
memcpy(nxt_wasm_ctx.dirs[i], str.start, str.length);
}
+ nxt_wasm_ctx.nr_dirs = n;
out_init:
err = nxt_wops->init(&nxt_wasm_ctx);