Skip to content

Commit

Permalink
MT#55283 further compiler warning fixes
Browse files Browse the repository at this point in the history
for #1690

Follow up to 37d7762

Change-Id: Id58204db5a733b3d821cbef855fac72451484b41
(cherry picked from commit 3e81cfa)
  • Loading branch information
rfuchs committed Aug 7, 2023
1 parent 6cc65bb commit 452e8cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions daemon/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2891,9 +2891,8 @@ int sdp_create(str *out, struct call_monologue *monologue, struct sdp_ng_flags *
print_sdp_media_section(s, media, NULL, flags, rtp_ps_link, true, false);
}

out->s = s->str;
out->len = s->len;
g_string_free(s, FALSE);
out->s = g_string_free(s, FALSE);
return 0;
err:
if (s)
Expand Down
3 changes: 1 addition & 2 deletions lib/str.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,8 @@ INLINE str *g_string_free_str(GString *gs) {
assert(gs->len >= pl);
assert(memcmp(gs->str, STR_MALLOC_PADDING, pl) == 0);
ret = (void *) gs->str;
ret->s = gs->str + pl;
ret->len = gs->len - pl;
g_string_free(gs, FALSE);
ret->s = g_string_free(gs, FALSE) + pl;
return ret;
}
INLINE int str_memcmp(const str *s, void *m) {
Expand Down

0 comments on commit 452e8cf

Please sign in to comment.