mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Properly initialize "struct in6_addr" with zeroes.
This commit is contained in:
parent
4b6f8dcd2a
commit
7c4068d349
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len)
|
|||
* prevent MSVC8 warning:
|
||||
* potentially uninitialized local variable 'inaddr6' used
|
||||
*/
|
||||
ngx_memzero(inaddr6.s6_addr, sizeof(struct in6_addr));
|
||||
ngx_memzero(&inaddr6, sizeof(struct in6_addr));
|
||||
#endif
|
||||
|
||||
inaddr = ngx_inet_addr(text, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue