diff options
author | Zhidao HONG <z.hong@f5.com> | 2023-07-12 09:31:22 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2023-07-12 09:31:22 +0800 |
commit | d0fdf5971f47a4f12c56f13691abb6e9980b0707 (patch) | |
tree | a2bd86eeae0cff44678266c6e9720105b98ec59e | |
parent | eb614f11474e44567cf820d075026eeb758ce725 (diff) | |
download | unit-d0fdf5971f47a4f12c56f13691abb6e9980b0707.tar.gz unit-d0fdf5971f47a4f12c56f13691abb6e9980b0707.tar.bz2 |
NJS: workaround for the warning in nxt_js_call() on Freebsd12 gcc.
-rw-r--r-- | src/nxt_js.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nxt_js.c b/src/nxt_js.c index 066d08f6..74663660 100644 --- a/src/nxt_js.c +++ b/src/nxt_js.c @@ -407,13 +407,12 @@ nxt_js_call(nxt_task_t *task, nxt_js_conf_t *jcf, nxt_js_cache_t *cache, return NXT_ERROR; } - ret = njs_vm_start(vm, njs_value_arg(&retval)); + cache->vm = vm; + + ret = njs_vm_start(vm, &cache->array); if (ret != NJS_OK) { return NXT_ERROR; } - - cache->vm = vm; - cache->array = *njs_value_arg(&retval); } value = njs_vm_array_prop(vm, &cache->array, js->index, &opaque_value); |