Wed, 19 Jul 2023 23:26:58 -0500
Fix a warn_unused_result in ircv3connection.c
Testing Done:
Compiled and verified the warning was gone.
Reviewed at https://reviews.imfreedom.org/r/2530/
| libpurple/protocols/ircv3/purpleircv3connection.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/ircv3/purpleircv3connection.c Wed Jul 19 23:23:17 2023 -0500 +++ b/libpurple/protocols/ircv3/purpleircv3connection.c Wed Jul 19 23:26:58 2023 -0500 @@ -596,9 +596,7 @@ g_string_append(msg, "\r\n"); /* Finally turn the string into bytes and send it! */ - bytes = g_bytes_new_take(msg->str, msg->len); - g_string_free(msg, FALSE); - + bytes = g_string_free_to_bytes(msg); purple_queued_output_stream_push_bytes_async(priv->output, bytes, G_PRIORITY_DEFAULT, priv->cancellable,