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.
This commit is contained in:
parent
c80d768004
commit
79e3de3e55
|
@ -5406,7 +5406,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
||||||
if (profile->pres_type) {
|
if (profile->pres_type) {
|
||||||
const char *presence_data = switch_channel_get_variable(channel, "presence_data");
|
const char *presence_data = switch_channel_get_variable(channel, "presence_data");
|
||||||
const char *presence_id = switch_channel_get_variable(channel, "presence_id");
|
const char *presence_id = switch_channel_get_variable(channel, "presence_id");
|
||||||
char *full_contact = "";
|
char *full_contact = NULL;
|
||||||
char *p = NULL;
|
char *p = NULL;
|
||||||
time_t now;
|
time_t now;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue