Skip to content

Commit f4cbf40

Browse files
ThalleyMaureenHelm
authored andcommitted
Bluetooth: BAP: Fix uninitialized variable in source_reconfig
The stream_in_subgroup variable in bt_bap_broadcast_source_reconfig may have been uninitialized. Signed-off-by: Emil Gydesen <[email protected]>
1 parent bf37784 commit f4cbf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/audio/bap_broadcast_source.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ int bt_bap_broadcast_source_reconfig(struct bt_bap_broadcast_source *source,
788788
for (size_t i = 0U; i < subgroup_param->params_count; i++) {
789789
struct bt_bap_stream *subgroup_stream;
790790
struct bt_bap_stream *param_stream;
791-
bool stream_in_subgroup;
791+
bool stream_in_subgroup = false;
792792

793793
param_stream = subgroup_param->params[i].stream;
794794

0 commit comments

Comments
 (0)