commit | 091f6ffce64b0b8f36480c80046a5e961ebfce29 | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Thu Mar 15 19:41:35 2012 +0000 |
committer | Ruslan Ermilov <ru@nginx.com> | Thu Mar 15 19:41:35 2012 +0000 |
tree | 31c85fa10b6701599a0e85f2197d4c21945580ad | |
parent | 06733ae8cf9f376f0b707f9c83bc6412cdf3faab [diff] |
Slight optimization in ngx_http_get_variable_index().
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 78cfa23..5032586 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c
@@ -384,7 +384,7 @@ v->flags = 0; v->index = cmcf->variables.nelts - 1; - return cmcf->variables.nelts - 1; + return v->index; }