diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-10-12 09:19:57 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-10-12 09:19:57 +0000 |
commit | bfe7be45b87c766469bf912ba9e080886065fb08 (patch) | |
tree | f76ac7ab0c12869e0347a1727ce10e2353dbfe53 /src | |
parent | 88ca608da196d315e29558ab8b685d9977aab65a (diff) | |
download | nginx-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.c | 2 |
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; } |