提交 9ace496f authored 作者: William King's avatar William King

full_contact must be freed by sofia. There isn't a chance of this having blown…

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.
上级 ef1bf8e3
...@@ -5462,7 +5462,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status ...@@ -5462,7 +5462,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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论