]> git.kaiwu.me - nginx.git/commitdiff
Changed error message to be more appropriate in the imaginary
authorRuslan Ermilov <ru@nginx.com>
Thu, 10 Nov 2011 09:13:09 +0000 (09:13 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 10 Nov 2011 09:13:09 +0000 (09:13 +0000)
"open_file_cache max=0" case.

src/http/ngx_http_core_module.c

index a1b49d781adbc5b40296be7cffe1a1bfe4190ba1..ba5191069045189bee3f9d7494958e6d043e3491 100644 (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;
             }