Skip to content

Commit 72d3449

Browse files
rruuaanngkartben
authored andcommitted
subsystem: bluetooth: Fix uninitialized variable
Fix uninitialized sec_idx variables scanned by Coverity. Signed-off-by: James Roy <[email protected]>
1 parent 86a8dac commit 72d3449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ static void rpa_adv_refresh(struct ll_adv_set *adv)
11641164
uint8_t pri_idx;
11651165

11661166
#if defined(CONFIG_BT_CTLR_ADV_EXT)
1167-
uint8_t sec_idx;
1167+
uint8_t sec_idx = UINT8_MAX;
11681168
#endif /* CONFIG_BT_CTLR_ADV_EXT */
11691169

11701170
if (adv->own_addr_type != BT_HCI_OWN_ADDR_RPA_OR_PUBLIC &&

0 commit comments

Comments
 (0)