From 2f37fbc8f9670edd0e014c74bcb6879a1a38c3e1 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 10 Nov 2011 09:13:09 +0000 Subject: Changed error message to be more appropriate in the imaginary "open_file_cache max=0" case. --- src/http/ngx_http_core_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http_core_module.c') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index a1b49d781..ba5191069 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -4400,7 +4400,7 @@ ngx_http_core_open_file_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) if (ngx_strncmp(value[i].data, "max=", 4) == 0) { max = ngx_atoi(value[i].data + 4, value[i].len - 4); - if (max == NGX_ERROR) { + if (max <= 0) { goto failed; } -- cgit