Mercurial > hg > nginx
diff src/core/nginx.c @ 90:37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 May 2003 15:27:48 +0000 |
parents | 674d333f4296 |
children | 637625a2acdb |
line wrap: on
line diff
--- a/src/core/nginx.c Thu May 15 15:42:53 2003 +0000 +++ b/src/core/nginx.c Fri May 16 15:27:48 2003 +0000 @@ -38,6 +38,7 @@ int ngx_max_module; +void *ctx_conf; int ngx_connection_counter; @@ -81,8 +82,14 @@ } ngx_memzero(&conf, sizeof(ngx_conf_t)); - ngx_test_null(conf.args, - ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), 1); + + ngx_test_null(conf.args, ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), + 1); + + ngx_test_null(conf.ctx, + ngx_pcalloc(ngx_pool, ngx_max_module * sizeof(void *)), + 1); + conf.pool = ngx_pool; conf.log = &ngx_log; conf.module_type = NGX_CORE_MODULE_TYPE;