From: Dmitry Volyntsev Date: Thu, 22 Jun 2017 15:56:26 +0000 (+0300) Subject: Fixed typo in js_include handler. X-Git-Tag: 0.1.11~4 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=f929d7bf7ab399aaaa968e5e591b325b6d40457d;p=njs.git Fixed typo in js_include handler. --- diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index cfe83d80..668b7192 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -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; diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index 8be73f3e..f9ab7ac1 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -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;