Skip to content

Commit

Permalink
geniuspaste: Silence a harmless warning with GLib 2.76+
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed May 15, 2024
1 parent 4e7d627 commit 17af2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geniuspaste/src/geniuspaste.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ static SoupMessage *json_request_new(const gchar *method,
g_datalist_foreach(fields, append_json_data_item, str);
g_string_append_c(str, '}');
bytes = g_bytes_new_take(str->str, str->len);
g_string_free(str, FALSE);
(void) g_string_free(str, FALSE); /* buffer already taken above */
soup_message_set_request_body_from_bytes(msg, "application/json", bytes);
g_bytes_unref(bytes);

Expand Down

0 comments on commit 17af2ad

Please sign in to comment.