[Xfce4-commits] [xfce/xfce4-settings] 50/57: color: Fix previous commit
noreply at xfce.org
noreply at xfce.org
Thu Mar 21 22:14:38 CET 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-settings.
commit 7d227431665157f313825fd3f00baf3d29ebee01
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Mon Feb 25 23:06:42 2019 +0100
color: Fix previous commit
---
dialogs/color-settings/main.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c
index c5a3339..c967359 100644
--- a/dialogs/color-settings/main.c
+++ b/dialogs/color-settings/main.c
@@ -578,15 +578,16 @@ static void
color_settings_profile_info_view (CdProfile *profile)
{
gboolean ret;
- GError **error = NULL;
+ g_autoptr(GError) error = NULL;
gchar *cli;
/* open up gcm-viewer */
- argv = g_ptr_array_new_with_free_func (g_free);
cli = g_strdup_printf ("gcm-viewer --profile %s", cd_profile_get_id (profile));
- ret = g_spawn_command_line_async (cli, error);
- if (!ret)
+ ret = g_spawn_command_line_async (cli, &error);
+
+ if (!ret) {
g_warning ("failed to run gcm-viewer: %s", error->message);
+ }
g_free (cli);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list