Fix issues detected by static program analysis 76/56976/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 14 Jan 2016 05:16:44 +0000 (14:16 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 14 Jan 2016 05:16:44 +0000 (14:16 +0900)
Change-Id: I5fcb11ba212898776687ce1075803a8dbbdaf455
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/device/social/call.cpp
src/device/social/email.cpp
src/device/system/wifi.cpp
src/statistics/social/log_aggregator.cpp

index 9f945e84a06a4aeb1946ad61a4fa0bb5ed707cd4..52e6aa33e677def3599f7da94f096c498c4ab425 100644 (file)
@@ -42,6 +42,8 @@ static ctx::json latest;
 
 ctx::social_status_call::social_status_call()
 {
+       handle_list.count = 0;
+       handle_list.handle = NULL;
 }
 
 ctx::social_status_call::~social_status_call()
index 3af00b625fa2e89c06537387d7406d16199463ee..2324a4b3650f887b5b597c08e59801ce186be1f4 100644 (file)
@@ -25,6 +25,7 @@
 GENERATE_PROVIDER_COMMON_IMPL(social_status_email);
 
 ctx::social_status_email::social_status_email()
+       : dbus_signal_id(-1)
 {
 }
 
index d6eaa100ecd0994225e3d8658693ec4c937507e2..fde2d8cc171d3f03f05874625ba91df740c3d996 100644 (file)
@@ -25,6 +25,7 @@ ctx::device_status_wifi::device_status_wifi()
        : last_state(_UNKNOWN)
        , is_initialized(false)
        , is_activated(false)
+       , conn_state(WIFI_CONNECTION_STATE_FAILURE)
 {
        IF_FAIL_VOID_TAG(start_monitor(), _W, "WiFi monitor initialization failed");
 
index 4e800538c9c5d5a29b9d2d611b4674342581aa9b..c04e918adf30cff335d6f4ff3635f8605cd47887 100644 (file)
@@ -24,6 +24,7 @@
 
 ctx::contact_log_aggregator::contact_log_aggregator()
        : timer_id(-1)
+       , time_diff(0)
 {
        create_table();
        timer_id = timer_manager::set_at(3, 0, timer_types::EVERYDAY, this, NULL);