Fix the svace issue (UNINIT.LOCAL_VAR.EX) 50/250350/2 accepted/tizen/unified/20201229.124655 accepted/tizen/unified/20210128.132331 submit/tizen/20201228.031005 submit/tizen/20210127.232224
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 24 Dec 2020 00:29:24 +0000 (09:29 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 24 Dec 2020 00:30:57 +0000 (09:30 +0900)
Change-Id: I16a8a39fcea1618164112708ceec83f5ded3e99a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-mesh.c

index 26d2609..195e4c0 100644 (file)
@@ -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;