Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 4269:d9cffafbe944
Changed error message to be more appropriate in the imaginary
"open_file_cache max=0" case.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 10 Nov 2011 09:13:09 +0000 |
parents | 4c45306936bb |
children | 986be4081f71 |
comparison
equal
deleted
inserted
replaced
4268:25ddf6afc0ff | 4269:d9cffafbe944 |
---|---|
4398 for (i = 1; i < cf->args->nelts; i++) { | 4398 for (i = 1; i < cf->args->nelts; i++) { |
4399 | 4399 |
4400 if (ngx_strncmp(value[i].data, "max=", 4) == 0) { | 4400 if (ngx_strncmp(value[i].data, "max=", 4) == 0) { |
4401 | 4401 |
4402 max = ngx_atoi(value[i].data + 4, value[i].len - 4); | 4402 max = ngx_atoi(value[i].data + 4, value[i].len - 4); |
4403 if (max == NGX_ERROR) { | 4403 if (max <= 0) { |
4404 goto failed; | 4404 goto failed; |
4405 } | 4405 } |
4406 | 4406 |
4407 continue; | 4407 continue; |
4408 } | 4408 } |