Fix static analysis issue 78/281778/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 22 Sep 2022 01:29:11 +0000 (01:29 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 22 Sep 2022 01:30:24 +0000 (01:30 +0000)
- Initializes member variables

Change-Id: Iea984746028c53001d2a2100cc57d03fc3315f30
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/debug-port-internal.cc

index a6c8e2e..e5c1802 100644 (file)
@@ -112,13 +112,13 @@ class DebugPortImpl {
 
  private:
   bool disposed_ = true;
-  std::atomic<bool> connected_;
+  std::atomic<bool> connected_ { false };
   std::unique_ptr<Port> port_;
   GIOChannel* io_ = nullptr;
   guint watch_tag_ = 0;
   std::list<std::shared_ptr<Session>> sessions_;
   std::thread thread_;
-  std::atomic<bool> is_running_;
+  std::atomic<bool> is_running_ { false };
   SharedQueue<std::shared_ptr<tizen_base::Parcel>> queue_;
   mutable std::recursive_mutex mutex_;
   aul_app_com_connection_h conn_ = nullptr;