aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2018-03-23 13:53:27 +0300
committerDmitry Volyntsev <xeioex@nginx.com>2018-03-23 13:53:27 +0300
commit50d4650a5ed0d47b45bd41b32150f8435f3a86ee (patch)
tree1ee947f4eb2e7ae6ebd4477fc8b2ff54aec2ec29 /nginx/ngx_http_js_module.c
parent48c886ebcaf3249ff27e4103b0fd188df9c29982 (diff)
downloadnjs-50d4650a5ed0d47b45bd41b32150f8435f3a86ee.tar.gz
njs-50d4650a5ed0d47b45bd41b32150f8435f3a86ee.zip
Fixed copying of a garbage value.
Found by Clang Static Analyzer. Additionally, unnecessary body_arg.length zeroing is removed.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c2
1 files changed, 1 insertions, 1 deletions
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))) {