From: DoHyun Pyun Date: Tue, 25 Aug 2020 23:04:05 +0000 (+0900) Subject: Fix the svace issue (SIZE MISMATCH) X-Git-Tag: submit/tizen/20200827.215651~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8dfb75c6d60c92eac73f71b8b9a75af457239f;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix the svace issue (SIZE MISMATCH) Change-Id: Iaa43e331d02b4653654d9f22815f0cbacb919d55 Signed-off-by: DoHyun Pyun --- 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);