FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_sofia

This commit is contained in:
Mariah Yang
2019-07-02 07:15:17 +04:00
committed by Andrey Volk
parent 6f9ee4216c
commit d654faa5a9
8 changed files with 171 additions and 216 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
goto end;
} else if (!strncasecmp(msg->string_arg, "debug:", 6)) {
s = msg->string_arg + 6;
if (s && !strcmp(s, "off")) {
if (!strcmp(s, "off")) {
s = NULL;
}
switch_rtp_debug_jitter_buffer(tech_pvt->rtp_session, s);