Mercurial > hg > nginx
changeset 4269:d9cffafbe944
Changed error message to be more appropriate in the imaginary
"open_file_cache max=0" case.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 10 Nov 2011 09:13:09 +0000 |
parents | 25ddf6afc0ff |
children | 3544987fef85 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 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; }