diff --git a/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c b/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c index 4ef176d7f6..f992af9b18 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c @@ -629,7 +629,6 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult) struct ifreq ifreq[1]; int scope, if_index, flags = 0, gni_flags = 0; char *if_name; - su_sockaddr_t su2[1]; #if SA_LEN if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_addr)) @@ -747,6 +746,7 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult) #if SU_HAVE_IN6 if (su_xtra) { + su_sockaddr_t su2[1]; /* Map IPv4 address to IPv6 address */ memset(su2, 0, sizeof(*su2)); su2->su_family = AF_INET6;