From: Michael Jerris Date: Thu, 15 May 2014 12:36:36 +0000 (+0000) Subject: CID:1214256 Unused pointer value X-Git-Tag: v1.4.4~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16805187eca673519df04965a8ff440818bc7076;p=thirdparty%2Ffreeswitch.git CID:1214256 Unused pointer value --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index b8a59de37c..36ecbf7d43 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -4297,10 +4297,9 @@ static void conference_loop_output(conference_member_t *member) char *from = switch_event_get_header(event, "from"); char *to = switch_event_get_header(event, "to"); char *body = switch_event_get_body(event); - char *p; if (to && from && body) { - if ((p = strchr(to, '+')) && strncmp(to, CONF_CHAT_PROTO, strlen(CONF_CHAT_PROTO))) { + if (strchr(to, '+') && strncmp(to, CONF_CHAT_PROTO, strlen(CONF_CHAT_PROTO))) { switch_event_del_header(event, "to"); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "to", "%s+%s@%s", CONF_CHAT_PROTO, member->conference->name, member->conference->domain);