Skip to content

Commit 8759db7

Browse files
committed
Fixed dead store assignment in r.subrequest().
Found by Clang static analyzer.
1 parent 685b64f commit 8759db7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nginx/ngx_http_js_module.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,7 +3474,6 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
34743474
return NJS_ERROR;
34753475
}
34763476

3477-
promise = 0;
34783477
flags = NGX_HTTP_SUBREQUEST_BACKGROUND;
34793478

34803479
njs_value_undefined_set(retval);
@@ -5859,7 +5858,6 @@ ngx_http_qjs_ext_subrequest(JSContext *cx, JSValueConst this_val,
58595858
"exclusive");
58605859
}
58615860

5862-
promise = 0;
58635861
retval = JS_UNDEFINED;
58645862
flags = NGX_HTTP_SUBREQUEST_BACKGROUND;
58655863

0 commit comments

Comments
 (0)