mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
Slight optimization in ngx_http_get_variable_index().
This commit is contained in:
parent
06733ae8cf
commit
091f6ffce6
@ -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…
Reference in New Issue
Block a user