From 50d4650a5ed0d47b45bd41b32150f8435f3a86ee Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Fri, 23 Mar 2018 13:53:27 +0300 Subject: [PATCH] Fixed copying of a garbage value. Found by Clang Static Analyzer. Additionally, unnecessary body_arg.length zeroing is removed. --- nginx/ngx_http_js_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 453b2579..ea4d9609 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1503,7 +1503,7 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs, method = 0; args_arg.length = 0; - body_arg.length = 0; + args_arg.start = NULL; has_body = 0; if (nargs > 2 && !njs_value_is_function(njs_argument(args, 2))) { -- 2.47.3