diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2017-07-17 15:29:02 +0300 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2017-07-17 15:29:02 +0300 |
commit | 7e8bca718b5e844c4c05a414bc27730e0fb1a338 (patch) | |
tree | 343778a1121216b2e66838fc81d3767df2623ecc /nginx/ngx_http_js_module.c | |
parent | bace128e63f137b87b30605ef834b363b052216f (diff) | |
download | njs-7e8bca718b5e844c4c05a414bc27730e0fb1a338.tar.gz njs-7e8bca718b5e844c4c05a414bc27730e0fb1a338.zip |
Initialize njs_vm_opt_t structs to 0 to simplify options adding.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index d3b8d6da..e81c3116 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1319,8 +1319,9 @@ ngx_http_js_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) return NGX_CONF_ERROR; } + ngx_memzero(&options, sizeof(njs_vm_opt_t)); + options.mcp = mcp; - options.shared = NULL; options.externals = &externals; jlcf->vm = njs_vm_create(&options); |