]> git.kaiwu.me - njs.git/commitdiff
Fixed typo in js_include handler.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 22 Jun 2017 15:56:26 +0000 (18:56 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 22 Jun 2017 15:56:26 +0000 (18:56 +0300)
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c

index cfe83d80403ce8b9adb313e8cc235d6b78959493..668b7192ca486771123c729671e6743c090eece6 100644 (file)
@@ -1303,7 +1303,7 @@ ngx_http_js_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 
     cln = ngx_pool_cleanup_add(cf->pool, 0);
     if (cln == NULL) {
-        return NULL;
+        return NGX_CONF_ERROR;
     }
 
     cln->handler = ngx_http_js_cleanup_mem_cache_pool;
index 8be73f3e37e90dd7eeacd17a0f98b6c00fe27056..f9ab7ac185eb7c2f48fe0c8ead2f2f4cd60f77f7 100644 (file)
@@ -1013,7 +1013,7 @@ ngx_stream_js_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 
     cln = ngx_pool_cleanup_add(cf->pool, 0);
     if (cln == NULL) {
-        return NULL;
+        return NGX_CONF_ERROR;
     }
 
     cln->handler = ngx_stream_js_cleanup_mem_cache_pool;