fix(nimble): Zero initialize variable to avoid garbage value

This commit is contained in:
Rahul Tank
2024-07-26 09:38:14 +05:30
parent 9372de75de
commit c0363f26cf
+1 -1
View File
@@ -8041,7 +8041,7 @@ ble_gap_host_check_status(void)
#endif
struct ble_hs_conn *conn;
ble_addr_t oldest_peer_id_addr[MYNEWT_VAL(BLE_STORE_MAX_BONDS)];
int num_peers;
int num_peers = 0;
/* Stop Advertising */
#if MYNEWT_VAL(BLE_EXT_ADV)