From 59bba976de22ac2f69d0aec347e30c0e441e22c3 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 17 Jun 2024 21:35:02 -0700 Subject: [PATCH] Modules: removed not needed previous location initialization. --- nginx/ngx_js.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nginx/ngx_js.c b/nginx/ngx_js.c index aa5e71cc6..ef85096cc 100644 --- a/nginx/ngx_js.c +++ b/nginx/ngx_js.c @@ -1542,12 +1542,6 @@ ngx_js_merge_vm(ngx_conf_t *cf, ngx_js_loc_conf_t *conf, ngx_array_t *imports, *preload_objects, *paths; ngx_js_named_path_t *import, *pi, *pij, *preload; - if (prev->imports != NGX_CONF_UNSET_PTR && prev->vm == NULL) { - if (init_vm(cf, (ngx_js_loc_conf_t *) prev) != NGX_OK) { - return NGX_ERROR; - } - } - if (conf->imports == NGX_CONF_UNSET_PTR && conf->paths == NGX_CONF_UNSET_PTR && conf->preload_objects == NGX_CONF_UNSET_PTR)