From: William King Date: Sun, 19 May 2013 02:13:18 +0000 (-0700) Subject: full_contact must be freed by sofia. There isn't a chance of this having blown anythi... X-Git-Tag: v1.2.10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e3de3e55d2b58a881e977b9385cc33126ca34f;p=thirdparty%2Ffreeswitch.git full_contact must be freed by sofia. There isn't a chance of this having blown anything up, but Coverity is right that this should be initialized with NULL to be safe against future refactors. --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index d824e5eedd..ccdc7f55e1 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -5406,7 +5406,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status if (profile->pres_type) { const char *presence_data = switch_channel_get_variable(channel, "presence_data"); const char *presence_id = switch_channel_get_variable(channel, "presence_id"); - char *full_contact = ""; + char *full_contact = NULL; char *p = NULL; time_t now;