Mercurial > hg > nginx-vendor-0-8
comparison src/http/modules/ngx_http_log_module.c @ 516:7efcdb937752 NGINX_0_8_10
nginx 0.8.10
*) Bugfix: memory leaks if GeoIP City database was used.
*) Bugfix: in copying temporary files to permanent storage area; the
bug had appeared in 0.8.9.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 24 Aug 2009 00:00:00 +0400 |
parents | f39b9e29530d |
children | 0161f3197817 |
comparison
equal
deleted
inserted
replaced
515:607556aed0a1 | 516:7efcdb937752 |
---|---|
835 | 835 |
836 value = cf->args->elts; | 836 value = cf->args->elts; |
837 | 837 |
838 if (ngx_strcmp(value[1].data, "off") == 0) { | 838 if (ngx_strcmp(value[1].data, "off") == 0) { |
839 llcf->off = 1; | 839 llcf->off = 1; |
840 return NGX_CONF_OK; | 840 if (cf->args->nelts == 2) { |
841 return NGX_CONF_OK; | |
842 } | |
843 | |
844 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | |
845 "invalid parameter \"%V\"", &value[2]); | |
846 return NGX_CONF_ERROR; | |
841 } | 847 } |
842 | 848 |
843 if (llcf->logs == NULL) { | 849 if (llcf->logs == NULL) { |
844 llcf->logs = ngx_array_create(cf->pool, 2, sizeof(ngx_http_log_t)); | 850 llcf->logs = ngx_array_create(cf->pool, 2, sizeof(ngx_http_log_t)); |
845 if (llcf->logs == NULL) { | 851 if (llcf->logs == NULL) { |