[gnome-settings-daemon/gnome-3-2] color: Fix up a critical warning
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] color: Fix up a critical warning
- Date: Fri, 16 Mar 2012 10:42:00 +0000 (UTC)
commit d5e3ab854f37da395ceb47e6b0e39d5acff6de10
Author: Richard Hughes <richard hughsie com>
Date: Wed Feb 22 12:25:25 2012 +0000
color: Fix up a critical warning
Do not try to access a device ID when the device does not exist.
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=670599
plugins/color/gsd-color-manager.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 46dc0a0..b1d7805 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -356,8 +356,7 @@ gcm_session_profile_assign_find_device_cb (GObject *object,
res,
&error);
if (device == NULL) {
- g_warning ("not found device %s which should have been added: %s",
- cd_device_get_id (device),
+ g_warning ("not found device which should have been added: %s",
error->message);
g_error_free (error);
gcm_session_async_helper_free (helper);
@@ -1463,8 +1462,7 @@ gcm_session_profile_gamma_find_device_cb (GObject *object,
res,
&error);
if (device == NULL) {
- g_warning ("not found device %s: %s",
- cd_device_get_id (device),
+ g_warning ("could not find device: %s",
error->message);
g_error_free (error);
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]