diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2021-12-14 20:14:23 +0000 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2021-12-14 20:14:23 +0000 |
commit | bb796f7b3f3b65a78248f3ba86d0929eb292ca8e (patch) | |
tree | 3eef2ba333f3cc7b3eab737256989df6256838cf /nginx/ngx_http_js_module.c | |
parent | 57428e8ece3e0774c37a47e98f3d9859b8e59d15 (diff) | |
download | njs-bb796f7b3f3b65a78248f3ba86d0929eb292ca8e.tar.gz njs-bb796f7b3f3b65a78248f3ba86d0929eb292ca8e.zip |
Modules: removed dead code left after dfcbfb5e27b2.
Found by Coverity (CID 1495259).
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 5b20a084..68592ad2 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -3469,7 +3469,6 @@ ngx_http_js_init_main_conf(ngx_conf_t *cf, void *conf) size_t size; u_char *start, *end, *p; - ngx_fd_t fd; ngx_str_t *m, file; njs_int_t rc; njs_str_t text, path; @@ -3488,7 +3487,6 @@ ngx_http_js_init_main_conf(ngx_conf_t *cf, void *conf) } size = 0; - fd = NGX_INVALID_FILE; import = jmcf->imports->elts; for (i = 0; i < jmcf->imports->nelts; i++) { @@ -3498,10 +3496,6 @@ ngx_http_js_init_main_conf(ngx_conf_t *cf, void *conf) start = ngx_pnalloc(cf->pool, size); if (start == NULL) { - if (fd != NGX_INVALID_FILE) { - (void) ngx_close_file(fd); - } - return NGX_CONF_ERROR; } |