From: DoHyun Pyun Date: Thu, 24 Dec 2020 00:29:24 +0000 (+0900) Subject: Fix the svace issue (UNINIT.LOCAL_VAR.EX) X-Git-Tag: accepted/tizen/unified/20201229.124655^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=447bd3a7ef9c00c480e7365d5740f6d6a2bcce52;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix the svace issue (UNINIT.LOCAL_VAR.EX) Change-Id: I16a8a39fcea1618164112708ceec83f5ded3e99a Signed-off-by: DoHyun Pyun --- diff --git a/src/bluetooth-mesh.c b/src/bluetooth-mesh.c index 26d2609..195e4c0 100644 --- a/src/bluetooth-mesh.c +++ b/src/bluetooth-mesh.c @@ -1532,7 +1532,7 @@ int bt_mesh_network_add_netkey(bt_mesh_network_h network, bt_mesh_network_s *network_s; bt_mesh_netkey_s *netkey_s; bluetooth_mesh_network_t net; - uint16_t netkey_idx; + uint16_t netkey_idx = 0; FUNC_ENTRY; BT_CHECK_MESH_SUPPORT(); @@ -1752,7 +1752,7 @@ int bt_mesh_netkey_add_appkey(bt_mesh_netkey_h netkey, bt_mesh_appkey_h *appkey) { int error_code = BT_ERROR_NONE; - uint16_t appkey_idx; + uint16_t appkey_idx = 0; bt_mesh_network_s *network_s; bt_mesh_netkey_s *netkey_s; bt_mesh_appkey_s *appkey_s;