[gnome-color-manager] Fix up a missing return error where the output is disconnected
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Fix up a missing return error where the output is disconnected
- Date: Wed, 4 Nov 2009 15:21:14 +0000 (UTC)
commit 08adbfe15ca3092fd9aa41097a4e42b10a2aec9a
Author: Richard Hughes <richard hughsie com>
Date: Wed Nov 4 15:20:15 2009 +0000
Fix up a missing return error where the output is disconnected
src/gcm-utils.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-utils.c b/src/gcm-utils.c
index 6737f1f..66ba105 100644
--- a/src/gcm-utils.c
+++ b/src/gcm-utils.c
@@ -223,8 +223,11 @@ gcm_utils_get_clut_for_output (GnomeRROutput *output, GError **error)
/* don't set the gamma if there is no device */
connected = gnome_rr_output_is_connected (output);
- if (!connected)
+ if (!connected) {
+ if (error != NULL)
+ *error = g_error_new (1, 0, "cannot get clut for a unconnected output");
goto out;
+ }
/* get data */
name = gcm_utils_get_output_name (output);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]