Welcome! Log In Create A New Profile

Advanced

[njs] Fixed typo in js_include handler.

Dmitry Volyntsev
June 22, 2017 12:30PM
details: http://hg.nginx.org/njs/rev/44ca33e6afdb
branches:
changeset: 375:44ca33e6afdb
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Jun 22 18:56:26 2017 +0300
description:
Fixed typo in js_include handler.

diffstat:

nginx/ngx_http_js_module.c | 2 +-
nginx/ngx_stream_js_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 61feac0beeb3 -r 44ca33e6afdb nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Thu Jun 22 18:52:47 2017 +0300
+++ b/nginx/ngx_http_js_module.c Thu Jun 22 18:56:26 2017 +0300
@@ -1303,7 +1303,7 @@ ngx_http_js_include(ngx_conf_t *cf, ngx_

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 -r 61feac0beeb3 -r 44ca33e6afdb nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c Thu Jun 22 18:52:47 2017 +0300
+++ b/nginx/ngx_stream_js_module.c Thu Jun 22 18:56:26 2017 +0300
@@ -1013,7 +1013,7 @@ ngx_stream_js_include(ngx_conf_t *cf, ng

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;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed typo in js_include handler.

Dmitry Volyntsev 467 June 22, 2017 12:30PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 260
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready