Skip to content

Commit

Permalink
rtpengine: fix unitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jun 14, 2024
1 parent 90c9b78 commit 1c3139a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/rtpengine/rtpengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -4418,11 +4418,10 @@ static void rtpengine_copy_streams(bencode_item_t *streams, struct rtp_relay_str
for (item = streams->child; item; item = item->sibling) {
if (dlg) {
tmp.s = bencode_dictionary_get_string(item, "tag", &tmp.len);
if (!tmp.s) {
if (!tmp.s)
LM_WARN("could not retrieve tag - placing to %s\n",
(leg == RTP_RELAY_CALLER?"caller":"callee"));
}
if (!str_match(&tmp, &dlg->legs[DLG_CALLER_LEG].tag))
else if (!str_match(&tmp, &dlg->legs[DLG_CALLER_LEG].tag))
leg = RTP_RELAY_CALLEE;
else
leg = RTP_RELAY_CALLER;
Expand Down

0 comments on commit 1c3139a

Please sign in to comment.