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 Jun 16, 2024
1 parent a597d08 commit 1699a70
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 1699a70

Please sign in to comment.