le_device_db_tlv: fix compile

This commit is contained in:
Matthias Ringwald 2017-11-21 18:07:13 +01:00
parent 539b14edca
commit 6c8ec5fde6

View File

@ -234,7 +234,7 @@ int le_device_db_add(int addr_type, bd_addr_t addr, sm_key_t irk){
log_info("LE Device DB adding type %u - %s", addr_type, bd_addr_to_str(addr));
log_info_key("irk", irk);
memset(&le_devices[index], 0, sizeof(le_device_memory_db_t));
memset(&entry, 0, sizeof(le_device_db_entry_t));
entry.addr_type = addr_type;
memcpy(entry.addr, addr, 6);