eeze/sensor: Init Eeze_Sensor_Obj to NULL
authorStefan Schmidt <stefan@datenfreihafen.org>
Wed, 19 Sep 2012 12:41:23 +0000 (12:41 +0000)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 19 Sep 2012 12:41:23 +0000 (12:41 +0000)
Without this the object get might fail but our NULL check would not trigger.

SVN revision: 76856

legacy/eeze/src/modules/eeze_sensor_fake.c

index f75e123..194b5c5 100644 (file)
@@ -37,7 +37,7 @@ fake_shutdown(void)
 Eina_Bool
 fake_read(Eeze_Sensor_Type sensor_type, Eeze_Sensor_Obj *lobj)
 {
-   Eeze_Sensor_Obj *obj;
+   Eeze_Sensor_Obj *obj = NULL;
 
    obj = eeze_sensor_obj_get(sensor_type);
    if (obj == NULL)