Skip to content

Commit

Permalink
subsystem: bluetooth: Fix uninitialized variable
Browse files Browse the repository at this point in the history
Fix uninitialized sec_idx variables scanned by Coverity.

Signed-off-by: James Roy <[email protected]>
  • Loading branch information
rruuaanng committed Nov 21, 2024
1 parent b8360ad commit db5804c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/controller/ll_sw/ull_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ static void rpa_adv_refresh(struct ll_adv_set *adv)
uint8_t pri_idx;

#if defined(CONFIG_BT_CTLR_ADV_EXT)
uint8_t sec_idx;
uint8_t sec_idx = UINT8_MAX;
#endif /* CONFIG_BT_CTLR_ADV_EXT */

if (adv->own_addr_type != BT_HCI_OWN_ADDR_RPA_OR_PUBLIC &&
Expand Down

0 comments on commit db5804c

Please sign in to comment.