Fix coverity issue 51/224351/1 accepted/tizen/unified/20200211.055840 submit/tizen/20200210.093434
authorBoram Bae <boram21.bae@samsung.com>
Mon, 10 Feb 2020 05:11:11 +0000 (14:11 +0900)
committerBoram Bae <boram21.bae@samsung.com>
Mon, 10 Feb 2020 05:11:11 +0000 (14:11 +0900)
Change-Id: I0d25afbfb7391209bbd0c0691b462bc9e77509df
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
src/fusion-sensor/rotation_vector/fusion_utils/orientation_filter.cpp
src/sensorctl/sensor_adapter.cpp

index a7250937faf477d1b5564f742274817cb735e63e..2a27fd695ae8bf258f66934cf9a60219a0eaf7ec 100644 (file)
@@ -63,7 +63,7 @@ orientation_filter<TYPE>::orientation_filter()
        m_var_roll = vec;
        m_var_pitch = vec;
        m_var_azimuth = vec;
-
+       m_gyro_dt = TYPE();
 }
 
 template <typename TYPE>
index 68de53d34cbd8905861a1d08179466ef77372631..9cf0a32d7611be060484b11d8dc2431cf73b964e 100644 (file)
@@ -95,6 +95,7 @@ bool sensor_adapter::start(sensor_info info, int &handle)
        } else {
                ret = sensord_register_event(handle, SENSOR_EVENT(info.type), info.interval, info.batch_latency, info.cb, NULL);
        }
+       ASSERT_FREE((ret != true), sensors);
        ASSERT_TRUE(ret);
 
        ret = sensord_start(handle, info.powersave);