aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-05-16 15:27:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-05-16 15:27:48 +0000
commitbb4ec5c1721defd7b10f83ace51bddb71726dd1a (patch)
tree408036d662e5e14a56e8ccd42e2d20a73a0b2cd0 /src/core/nginx.c
parent6ddfbf06625eca15ddf24ac95b755cdc9db32bfa (diff)
downloadnginx-bb4ec5c1721defd7b10f83ace51bddb71726dd1a.tar.gz
nginx-bb4ec5c1721defd7b10f83ace51bddb71726dd1a.zip
nginx-0.0.1-2003-05-16-19:27:48 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 4a22e581f..ad0cd57c4 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -38,6 +38,7 @@ ngx_pool_t *ngx_pool;
int ngx_max_module;
+void *ctx_conf;
int ngx_connection_counter;
@@ -81,8 +82,14 @@ int main(int argc, char *const *argv)
}
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;