From b9edb59e9fe58e60351289ce212132adec99b8db Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 23 May 2008 18:18:45 +0000 Subject: [PATCH] gcc warns about stupid things but lets you get away with murder elsewhere.... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8541 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 08b85d7738..43f1a2840d 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -544,7 +544,7 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han if ((v_contact_str = switch_event_get_header(*v_event, "sip-force-contact"))) { - if (switch_strlen_zero(received_data) && (profile->pflags & PFLAG_RECIEVED_IN_NAT_REG_CONTACT)) { + if (*received_data && (profile->pflags & PFLAG_RECIEVED_IN_NAT_REG_CONTACT)) { switch_snprintf(received_data, sizeof(received_data), ";received=\"%s:%d\"", network_ip, network_port); }