summaryrefslogtreecommitdiff
path: root/legacy/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2012-09-20 15:46:34 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2012-09-20 15:46:34 +0000
commit63c3e6cc3c0f7162d76d4ccb220a29c24c81f959 (patch)
treea3935b11baaf4b41c129451ccf7f290faacfc052 /legacy/eeze
parentdede039b3546226742b6967a253fffb929a35bd4 (diff)
eeze/sensor: Fail if we can't find the sensor object.
We might have asked for a sensor that is not supported on this device. Let the application know about this. SVN revision: 76917
Diffstat (limited to 'legacy/eeze')
-rw-r--r--legacy/eeze/src/lib/eeze_sensor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/eeze/src/lib/eeze_sensor.c b/legacy/eeze/src/lib/eeze_sensor.c
index ccd6c18f56..aee73d07b9 100644
--- a/legacy/eeze/src/lib/eeze_sensor.c
+++ b/legacy/eeze/src/lib/eeze_sensor.c
@@ -134,6 +134,7 @@ eeze_sensor_new(Eeze_Sensor_Type type)
134 if (!sens) return NULL; 134 if (!sens) return NULL;
135 135
136 sens = eeze_sensor_obj_get(type); 136 sens = eeze_sensor_obj_get(type);
137 if (!sens) return NULL;
137 138
138 module = _highest_priority_module_get(); 139 module = _highest_priority_module_get();
139 if (!module) return EINA_FALSE; 140 if (!module) return EINA_FALSE;