diff options
author | Igor Sysoev <igor@sysoev.ru> | 2005-10-04 14:38:53 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2005-10-04 14:38:53 +0400 |
commit | f6e1fe3f28ee43792a4543e8b9e8702713c5b74a (patch) | |
tree | 67cd150690123c53effef3aac42cca767ceafbbf /src/http/ngx_http_variables.c | |
parent | 4dabff2624d4bae5e9cae37fb80d864501481432 (diff) |
nginx-0.2.5-RELEASE importrelease-0.2.5
*) Change: the duplicate value of the ngx_http_geo_module variable now
causes the warning and changes old value.
*) Feature: the ngx_http_ssi_module supports the "set" command.
*) Feature: the ngx_http_ssi_module supports the "file" parameter in
the "include" command.
*) Feature: the ngx_http_ssi_module supports the variable value
substitutions in expressions of the "if" command.
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 0247298b1..214015fe9 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -229,7 +229,7 @@ ngx_http_get_indexed_variable(ngx_http_request_t *r, ngx_uint_t index) cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); - if (cmcf->variables.elts == NULL || cmcf->variables.nelts <= index) { + if (cmcf->variables.nelts <= index) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, "unknown variable index: %d", index); return NULL; |