[mod_sofia] coverity CID 1257620 (Logically dead code)

This commit is contained in:
Dragos Oancea 2023-05-31 16:05:48 +03:00 committed by Andrey Volk
parent 525e12a146
commit 3ebeee61fb
1 changed files with 1 additions and 5 deletions

View File

@ -2205,11 +2205,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
argv[i], (double)((double)(MAX_REDIR + 1 - i))/1000);
}
} else {
if (i == argc - 1) {
switch_snprintf(newdest + strlen(newdest), len - strlen(newdest), "\"unknown\" <%s>", argv[i]);
} else {
switch_snprintf(newdest + strlen(newdest), len - strlen(newdest), "\"unknown\" <%s>,", argv[i]);
}
switch_snprintf(newdest + strlen(newdest), len - strlen(newdest), "\"unknown\" <%s>", argv[i]);
}
} else {
if (i == argc - 1) {