Skip to content

Commit

Permalink
Fixed dead store assignment in r.subrequest().
Browse files Browse the repository at this point in the history
Found by Clang static analyzer.
  • Loading branch information
xeioex committed Oct 14, 2024
1 parent 685b64f commit 8759db7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nginx/ngx_http_js_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 8759db7

Please sign in to comment.