mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-31 01:26:10 +00:00
BLE Host - Work around gcc bug
gcc 4 was warning about an initialization: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 X-Original-Commit: ac9e2e142e4602aa0126c9a0fd24e6b850e3ee52
This commit is contained in:
@@ -2170,11 +2170,12 @@ ble_sm_enc_initiate(uint16_t conn_handle, const uint8_t *ltk, uint16_t ediv,
|
||||
int
|
||||
ble_sm_unbond(uint8_t peer_id_addr_type, const uint8_t *peer_id_addr)
|
||||
{
|
||||
struct ble_store_key_sec key_sec = { 0 };
|
||||
struct ble_store_key_sec key_sec;
|
||||
int peer_rc;
|
||||
int our_rc;
|
||||
int rc;
|
||||
|
||||
memset(&key_sec, 0, sizeof key_sec);
|
||||
key_sec.peer_addr_type = peer_id_addr_type;
|
||||
memcpy(key_sec.peer_addr, peer_id_addr, sizeof key_sec.peer_addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user