mirror of
https://github.com/nginx/nginx.git
synced 2025-01-22 22:33:15 -06:00
Changed error message to be more appropriate in the imaginary
"open_file_cache max=0" case.
This commit is contained in:
parent
e74b611582
commit
2f37fbc8f9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user