mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
Fix (bogus) MSVC 2010 warning about uninitialized variable usage in ip6.c
It's wrong because the variables are initialized during first loop iteration due to best_addr == NULL
This commit is contained in:
parent
713146eeba
commit
2e265310c4
@ -224,8 +224,11 @@ ip6_select_source_address(struct netif *netif, const ip6_addr_t *dest)
|
||||
{
|
||||
const ip_addr_t *best_addr;
|
||||
const ip6_addr_t *cand_addr;
|
||||
s8_t dest_scope, cand_scope, best_scope;
|
||||
u8_t i, cand_pref, best_pref, cand_bits, best_bits;
|
||||
s8_t dest_scope, cand_scope;
|
||||
s8_t best_scope = IP6_MULTICAST_SCOPE_RESERVED;
|
||||
u8_t i, cand_pref, cand_bits;
|
||||
u8_t best_pref = 0;
|
||||
u8_t best_bits = 0;
|
||||
|
||||
/* Start by determining the scope of the given destination address. These
|
||||
* tests are hopefully (roughly) in order of likeliness to match. */
|
||||
|
Loading…
Reference in New Issue
Block a user