aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2011-11-10 09:13:09 +0000
committerRuslan Ermilov <ru@nginx.com>2011-11-10 09:13:09 +0000
commit2f37fbc8f9670edd0e014c74bcb6879a1a38c3e1 (patch)
treecf7a8c17aefe24dacc54a5197320876324b6d0d1 /src
parente74b611582195cdf9702f97cb647fef86483bac6 (diff)
downloadnginx-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.c2
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;
}