aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-10-12 09:19:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-10-12 09:19:57 +0000
commitbfe7be45b87c766469bf912ba9e080886065fb08 (patch)
treef76ac7ab0c12869e0347a1727ce10e2353dbfe53 /src
parent88ca608da196d315e29558ab8b685d9977aab65a (diff)
downloadnginx-bfe7be45b87c766469bf912ba9e080886065fb08.tar.gz
nginx-bfe7be45b87c766469bf912ba9e080886065fb08.zip
Preallocating exact number of default MIME types entries.
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 f500c5dec..db0f96248 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -3400,7 +3400,7 @@ ngx_http_core_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
}
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;
}