# HG changeset patch # User Ruslan Ermilov # Date 1320916389 0 # Node ID d9cffafbe9442895c69f8d577915c3d9a11afb84 # Parent 25ddf6afc0ff3da856adc72de2594200fa35fcc0 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 --- 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; }