Browse Source

MT#55283 silence compiler warning

g_string_free(..., FALSE) is declared as warn_unused_result

closes #1690

Change-Id: Ib0a7fb4eab4359226fba519cfd485fb3228a0bc7
(cherry picked from commit 37d7762fec)
pull/1736/head
Richard Fuchs 2 years ago
parent
commit
d6dc50d019
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      daemon/sdp.c

+ 3
- 2
daemon/sdp.c View File

@ -2031,8 +2031,9 @@ void sdp_chopper_destroy(struct sdp_chopper *chop) {
void sdp_chopper_destroy_ret(struct sdp_chopper *chop, str *ret) {
*ret = STR_NULL;
if (chop->output) {
str_init_len(ret, chop->output->str, chop->output->len);
g_string_free(chop->output, FALSE);
size_t len = chop->output->len;
char *str = g_string_free(chop->output, FALSE);
str_init_len(ret, str, len);
chop->output = NULL;
}
sdp_chopper_destroy(chop);


Loading…
Cancel
Save