Skip to content

Commit 1c7153e

Browse files
committed
core: fix build with gcc-14, make sure media.len is initialized
transformations.c: In function ‘tr_eval_sdp’: transformations.c:1761:70: error: ‘media.len’ may be used uninitialized [-Werror=maybe-uninitialized] 1761 | if ((media.s != NULL && stream->media.len == media.len && | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent 511b051 commit 1c7153e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transformations.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ int tr_eval_sdp(struct sip_msg *msg, tr_param_t *tp,int subtype,
17151715
case TR_SDP_STREAM_DEL:
17161716
/* determine the media type we are talking about
17171717
* either by index or by name */
1718-
media.s = NULL;
1718+
media = STR_NULL;
17191719
entryNo = 0;
17201720
switch (tp->type) {
17211721
case TR_PARAM_NUMBER:

0 commit comments

Comments
 (0)