mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
get rid of uninitialized value, closing ticket #120
This commit is contained in:
parent
770a583dcf
commit
ef8ebaf93d
@ -121,7 +121,7 @@ struct ifi_info *get_ifi_info(int family, int doaliases)
|
||||
struct ifconf ifc;
|
||||
struct ifreq *ifr, ifrcopy;
|
||||
struct sockaddr_in *sinptr;
|
||||
int index;
|
||||
// int index;
|
||||
|
||||
#if defined(AF_INET6) && defined(HAVE_IPV6)
|
||||
struct sockaddr_in6 *sinptr6;
|
||||
@ -184,7 +184,7 @@ struct ifi_info *get_ifi_info(int family, int doaliases)
|
||||
ptr += sizeof(struct ifreq); /* for next one in buffer */
|
||||
#endif
|
||||
|
||||
DPRINTF(E_DBG,L_REND,"intf %d name=%s AF=%d, flags=%08x\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family,ifr->ifr_flags);
|
||||
DPRINTF(E_DBG,L_REND,"intf name=%s AF=%d, flags=%08x\n", ifr->ifr_name, ifr->ifr_addr.sa_family,ifr->ifr_flags);
|
||||
|
||||
if (ifr->ifr_addr.sa_family != family)
|
||||
continue; /* ignore if not desired address family */
|
||||
|
Loading…
Reference in New Issue
Block a user