Fix static analysis issue 23/261423/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 18 Jul 2021 23:08:20 +0000 (08:08 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 18 Jul 2021 23:08:20 +0000 (08:08 +0900)
- Initialize private members to nullptr

Change-Id: I36ebc07223b157b207d2f7c4d4c61e21c21a9a92
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
test/unit_tests/rpc_port_test.cc

index 78ac326..7163202 100644 (file)
@@ -308,8 +308,8 @@ class RpcPortBase : public TestFixture {
     proxy_handle_ = nullptr;
   }
 
-  rpc_port_proxy_h proxy_handle_;
-  rpc_port_stub_h stub_handle_;
+  rpc_port_proxy_h proxy_handle_ = nullptr;
+  rpc_port_stub_h stub_handle_ = nullptr;
   bool touch_proxy_connected_event_cb_ = false;
   bool touch_stub_connected_event_cb_ = false;
   bool touch_proxy_rejected_event_cb_ = false;