Changed error message to be more appropriate in the imaginary

"open_file_cache max=0" case.
This commit is contained in:
Ruslan Ermilov 2011-11-10 09:13:09 +00:00
parent e74b611582
commit 2f37fbc8f9

View File

@ -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;
}