diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-09-07 15:37:55 +1000 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-09-07 15:37:55 +1000 |
commit | 5fe2aff9775b984fb5564ca80367911f30051618 (patch) | |
tree | 786cabfe3a8144a80da97a7d39c9a3eacdce137b /src/plymouth.c | |
parent | 23be548487393076277956da59e98e9b64f338b6 (diff) | |
download | lightdm-git-5fe2aff9775b984fb5564ca80367911f30051618.tar.gz |
Get ultra paranoid in checking if error objects are set before printing them out
Diffstat (limited to 'src/plymouth.c')
-rw-r--r-- | src/plymouth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plymouth.c b/src/plymouth.c index eda05de7..40626806 100644 --- a/src/plymouth.c +++ b/src/plymouth.c @@ -31,11 +31,12 @@ plymouth_run_command (const gchar *command, gint *exit_status) command_line = g_strdup_printf ("plymouth %s", command); result = g_spawn_command_line_sync (command_line, NULL, NULL, exit_status, &error); - if (!result) + if (error) g_debug ("Could not run %s: %s", command_line, error->message); - g_free (command_line); g_clear_error (&error); + g_free (command_line); + return result; } |