summaryrefslogtreecommitdiffhomepage
path: root/src/wasm/nxt_wasm.c
diff options
context:
space:
mode:
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);