[Freeswitch-svn] [commit] r12017 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su
FreeSWITCH SVN
mikej at freeswitch.org
Sat Feb 14 14:56:27 PST 2009
Author: mikej
Date: Sat Feb 14 16:56:27 2009
New Revision: 12017
Log:
only declare var if we need it (SFSIP-122)
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c Sat Feb 14 16:56:27 2009
@@ -629,7 +629,6 @@
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 @@
#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;
More information about the Freeswitch-svn
mailing list