diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2024-10-11 18:41:27 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioexception@gmail.com> | 2024-10-14 16:51:54 -0700 |
commit | 8759db7458f54d1d2c4d7657a68ca69c51a5c774 (patch) | |
tree | c57ed80f2dc9fe0992057b4d8f8c446207353dd6 /nginx/ngx_http_js_module.c | |
parent | 685b64f0326ac63a1deda3c9bdad61ad521990a7 (diff) | |
download | njs-8759db7458f54d1d2c4d7657a68ca69c51a5c774.tar.gz njs-8759db7458f54d1d2c4d7657a68ca69c51a5c774.zip |
Fixed dead store assignment in r.subrequest().
Found by Clang static analyzer.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index c34fccbd..6f026293 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -3474,7 +3474,6 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, return NJS_ERROR; } - promise = 0; flags = NGX_HTTP_SUBREQUEST_BACKGROUND; njs_value_undefined_set(retval); @@ -5859,7 +5858,6 @@ ngx_http_qjs_ext_subrequest(JSContext *cx, JSValueConst this_val, "exclusive"); } - promise = 0; retval = JS_UNDEFINED; flags = NGX_HTTP_SUBREQUEST_BACKGROUND; |