From 79e3de3e55d2b58a881e977b9385cc33126ca34f Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 18 May 2013 19:13:18 -0700 Subject: [PATCH] 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. --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;