Skip to content

Commit

Permalink
Changed error message to be more appropriate in the imaginary
Browse files Browse the repository at this point in the history
"open_file_cache max=0" case.
  • Loading branch information
mdocguard committed Nov 10, 2011
1 parent e74b611 commit 2f37fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2f37fbc

Please sign in to comment.