From 99005e01a823ea36ced823c216b773b641bdc24e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 31 Jul 2025 12:00:00 -0400 Subject: [PATCH] MT#63317 use length for empty test Change-Id: I7d47a545f3b8abb2025ac8cf88c2b564c171b23a --- daemon/call.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 60c0b3dcc..91d5da86d 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2306,9 +2306,9 @@ __attribute__((nonnull(1, 2))) static void media_update_media_id(struct call_media *media, struct stream_params *sp) { struct call_monologue *ml = media->monologue; - if (!media->media_id.s) { + if (!media->media_id.len) { // incoming side: we copy what we received - if (sp->media_id.s) + if (sp->media_id.len) media->media_id = call_str_cpy(&sp->media_id); if (media->media_id.s) t_hash_table_insert(ml->media_ids, &media->media_id, @@ -2317,7 +2317,7 @@ static void media_update_media_id(struct call_media *media, struct stream_params else { // RFC 5888 allows changing the media ID in a re-invite // (section 9.1), so handle this here. - if (sp->media_id.s) { + if (sp->media_id.len) { if (str_cmp_str(&media->media_id, &sp->media_id)) { // mismatch - update t_hash_table_remove(ml->media_ids, &media->media_id);