mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-02 20:16:45 +00:00
trivial: fu-util fix mismanaged memory
Caught by clang: ../src/fu-util.c:473:17: warning: assigning to 'gchar *' (aka 'char *') from 'const gchar *' (aka 'const char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] warning_markup = fwupd_remote_get_agreement (remote);
This commit is contained in:
parent
7877769cad
commit
5e13aecef8
@ -466,7 +466,7 @@ fu_util_perhaps_show_unreported (FuUtilPrivate *priv, GError **error)
|
||||
static gboolean
|
||||
fu_util_modify_remote_warning (FuUtilPrivate *priv, FwupdRemote *remote, GError **error)
|
||||
{
|
||||
g_autofree gchar *warning_markup = NULL;
|
||||
const gchar *warning_markup = NULL;
|
||||
g_autofree gchar *warning_plain = NULL;
|
||||
|
||||
/* get formatted text */
|
||||
|
Loading…
Reference in New Issue
Block a user