diff options
author | Ruslan Ermilov <ru@nginx.com> | 2011-11-10 09:13:09 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2011-11-10 09:13:09 +0000 |
commit | 2f37fbc8f9670edd0e014c74bcb6879a1a38c3e1 (patch) | |
tree | cf7a8c17aefe24dacc54a5197320876324b6d0d1 /src | |
parent | e74b611582195cdf9702f97cb647fef86483bac6 (diff) | |
download | nginx-2f37fbc8f9670edd0e014c74bcb6879a1a38c3e1.tar.gz nginx-2f37fbc8f9670edd0e014c74bcb6879a1a38c3e1.zip |
Changed error message to be more appropriate in the imaginary
"open_file_cache max=0" case.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index a1b49d781..ba5191069 100644 --- 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 *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; } |