[gnome-color-manager] trivial: do not overwrite the GError
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: do not overwrite the GError
- Date: Tue, 20 Jul 2010 09:02:53 +0000 (UTC)
commit efccd3d08069071f19c6ce7b001d190d2210321b
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 20 09:59:17 2010 +0100
trivial: do not overwrite the GError
libcolor-glib/gcm-sensor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libcolor-glib/gcm-sensor.c b/libcolor-glib/gcm-sensor.c
index bff64b4..240f481 100644
--- a/libcolor-glib/gcm-sensor.c
+++ b/libcolor-glib/gcm-sensor.c
@@ -364,6 +364,7 @@ gcm_sensor_get_ambient (GcmSensor *sensor, gdouble *value, GError **error)
/* coldplug source */
if (klass->get_ambient == NULL) {
+ ret = FALSE;
g_set_error_literal (error,
GCM_SENSOR_ERROR,
GCM_SENSOR_ERROR_INTERNAL,
@@ -402,6 +403,7 @@ gcm_sensor_sample (GcmSensor *sensor, GcmColorXYZ *value, GError **error)
/* coldplug source */
if (klass->sample == NULL) {
+ ret = FALSE;
g_set_error_literal (error,
GCM_SENSOR_ERROR,
GCM_SENSOR_ERROR_INTERNAL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]