Mercurial > hg > nginx-vendor-1-0
diff src/core/nginx.c @ 150:50bd986c5d63 NGINX_0_3_22
nginx 0.3.22
*) Feature: the ngx_http_perl_module supports the $r->args and
$r->unescape methods.
*) Feature: the method $r->query_string of ngx_http_perl_module was
canceled.
*) Bugfix: segmentation fault was occurred if the "none" or "blocked"
values was specified in the "valid_referers" directive; bug appeared
in 0.3.18.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 17 Jan 2006 00:00:00 +0300 |
parents | 8e6d4d96ec4c |
children | 73e8476f9142 |
line wrap: on
line diff
--- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -168,6 +168,8 @@ ngx_module_t ngx_core_module = { ngx_uint_t ngx_max_module; +static char *ngx_null_environ = NULL; + int ngx_cdecl main(int argc, char *const *argv) @@ -232,6 +234,8 @@ main(int argc, char *const *argv) return 1; } + environ = &ngx_null_environ; + ngx_max_module = 0; for (i = 0; ngx_modules[i]; i++) { ngx_modules[i]->index = ngx_max_module++;