mirror of
https://github.com/nginx/nginx.git
synced 2026-05-28 04:12:47 -04:00
Slight optimization in ngx_http_upstream_add(): replaced an expression
known to be constant with the constant value.
This commit is contained in:
parent
b163010872
commit
45d2ae646b
1 changed files with 1 additions and 1 deletions
|
|
@ -4433,7 +4433,7 @@ ngx_http_upstream_add(ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags)
|
|||
ngx_memzero(us, sizeof(ngx_http_upstream_server_t));
|
||||
|
||||
us->addrs = u->addrs;
|
||||
us->naddrs = u->naddrs;
|
||||
us->naddrs = 1;
|
||||
}
|
||||
|
||||
uscfp = ngx_array_push(&umcf->upstreams);
|
||||
|
|
|
|||
Loading…
Reference in a new issue