From 9390c0a9ba4a4c61e946c3f84ba22bd9f2b20aae Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 12 Oct 2021 14:26:24 +0900 Subject: [PATCH] Set nullptr to the port handle To fix static anlayzer issue, this patch sets the nullptr to the port handle. Change-Id: Idc14a13bc108028ce1ca4de766fcfc8469629e07 Signed-off-by: Hwankyu Jhun --- idlc/gen/cpp_stub_header_gen_cb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlc/gen/cpp_stub_header_gen_cb.h b/idlc/gen/cpp_stub_header_gen_cb.h index fde4fda..0b321b7 100644 --- a/idlc/gen/cpp_stub_header_gen_cb.h +++ b/idlc/gen/cpp_stub_header_gen_cb.h @@ -31,7 +31,7 @@ R"__cpp_cb( static void OnConnectedCB(const char* sender, const char* instance, static void OnDisconnectedCB(const char* sender, const char* instance, void* data); static int OnReceivedCB(const char* sender, const char* instance, rpc_port_h port, void* data); - rpc_port_stub_h stub_; + rpc_port_stub_h stub_ = nullptr; std::shared_ptr service_factory_; std::list> services_; )__cpp_cb"; -- 2.7.4