Slight optimization in ngx_http_get_variable_index().

This commit is contained in:
Ruslan Ermilov 2012-03-15 19:41:35 +00:00
parent 06733ae8cf
commit 091f6ffce6

View File

@ -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;
}