aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2012-03-15 19:41:35 +0000
committerRuslan Ermilov <ru@nginx.com>2012-03-15 19:41:35 +0000
commit091f6ffce64b0b8f36480c80046a5e961ebfce29 (patch)
tree31c85fa10b6701599a0e85f2197d4c21945580ad /src/http/ngx_http_variables.c
parent06733ae8cf9f376f0b707f9c83bc6412cdf3faab (diff)
downloadnginx-091f6ffce64b0b8f36480c80046a5e961ebfce29.tar.gz
nginx-091f6ffce64b0b8f36480c80046a5e961ebfce29.zip
Slight optimization in ngx_http_get_variable_index().
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index 78cfa234a..503258645 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -384,7 +384,7 @@ ngx_http_get_variable_index(ngx_conf_t *cf, ngx_str_t *name)
v->flags = 0;
v->index = cmcf->variables.nelts - 1;
- return cmcf->variables.nelts - 1;
+ return v->index;
}