commit | bfe7be45b87c766469bf912ba9e080886065fb08 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Wed Oct 12 09:19:57 2011 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Wed Oct 12 09:19:57 2011 +0000 |
tree | f76ac7ab0c12869e0347a1727ce10e2353dbfe53 | |
parent | 88ca608da196d315e29558ab8b685d9977aab65a [diff] |
Preallocating exact number of default MIME types entries.
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index f500c5d..db0f962 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c
@@ -3400,7 +3400,7 @@ } if (conf->types == NULL) { - conf->types = ngx_array_create(cf->pool, 4, sizeof(ngx_hash_key_t)); + conf->types = ngx_array_create(cf->pool, 3, sizeof(ngx_hash_key_t)); if (conf->types == NULL) { return NGX_CONF_ERROR; }