mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 04:39:05 +00:00
Slight optimization in ngx_http_get_variable_index().
This commit is contained in:
parent
06733ae8cf
commit
091f6ffce6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue