From: Ruslan Ermilov Date: Thu, 10 Nov 2011 09:13:09 +0000 (+0000) Subject: Changed error message to be more appropriate in the imaginary X-Git-Tag: release-1.1.8~15 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=2f37fbc8f9670edd0e014c74bcb6879a1a38c3e1;p=nginx.git Changed error message to be more appropriate in the imaginary "open_file_cache max=0" case. --- 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; }