diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-03-15 19:41:35 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-03-15 19:41:35 +0000 |
commit | 091f6ffce64b0b8f36480c80046a5e961ebfce29 (patch) | |
tree | 31c85fa10b6701599a0e85f2197d4c21945580ad /src/http/ngx_http_variables.c | |
parent | 06733ae8cf9f376f0b707f9c83bc6412cdf3faab (diff) | |
download | nginx-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.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 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; } |