From ad8dfb75c6d60c92eac73f71b8b9a75af457239f Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 26 Aug 2020 08:04:05 +0900 Subject: [PATCH] Fix the svace issue (SIZE MISMATCH) Change-Id: Iaa43e331d02b4653654d9f22815f0cbacb919d55 Signed-off-by: DoHyun Pyun --- src/bluetooth-mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bluetooth-mesh.c b/src/bluetooth-mesh.c index ba000bc..1e68b3b 100644 --- a/src/bluetooth-mesh.c +++ b/src/bluetooth-mesh.c @@ -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); -- 2.34.1