Skip to content

Commit f0af67a

Browse files
Yagoorfabiobaltieri
authored andcommitted
bluetooth: id: Fix uninitialized variable
* This variable default value has to be true, so that the application can return false in the expired callback Signed-off-by: Yago Fontoura do Rosario <yafo@demant.com>
1 parent 9cbbad1 commit f0af67a

File tree

1 file changed

+3
-0
lines changed
  • subsys/bluetooth/host

1 file changed

+3
-0
lines changed

subsys/bluetooth/host/id.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ static void le_rpa_invalidate(void)
286286
return;
287287
}
288288
bool rpa_expired_data[bt_dev.id_count];
289+
for (uint8_t i = 0; i < bt_dev.id_count; i++) {
290+
rpa_expired_data[i] = true;
291+
}
289292

290293
bt_le_ext_adv_foreach(adv_rpa_invalidate, &rpa_expired_data);
291294
#if defined(CONFIG_BT_RPA_SHARING)

0 commit comments

Comments
 (0)