Fix the svace issue (SIZE MISMATCH) 63/242363/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 25 Aug 2020 23:04:05 +0000 (08:04 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 25 Aug 2020 23:04:05 +0000 (08:04 +0900)
Change-Id: Iaa43e331d02b4653654d9f22815f0cbacb919d55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-mesh.c

index ba000bc..1e68b3b 100644 (file)
@@ -796,7 +796,7 @@ int bt_mesh_node_reset(bt_mesh_node_h node_handle)
        BT_INFO("Mesh: Reset the node [0x%2.2x]", node_s->unicast);
 
        /* Fill node */
-       memset(&node, 0x00, sizeof(bluetooth_mesh_node_t));
+       memset(&node, 0x00, sizeof(bluetooth_mesh_node_info_t));
        g_strlcpy(node.net_uuid, network_s->uuid, 33);
        node.primary_unicast = node_s->unicast;
        node.num_elements = g_slist_length(node_s->elements);