From: Ruslan Ermilov Date: Thu, 15 Mar 2012 19:41:35 +0000 (+0000) Subject: Slight optimization in ngx_http_get_variable_index(). X-Git-Tag: release-1.1.18~25 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=091f6ffce64b0b8f36480c80046a5e961ebfce29;p=nginx.git 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 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; }