Skip to content

Commit bd254ee

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: Tester: Fix bad memset in btb_bap_broadcast
btp_bap_broadcast_local_source_free used &source, but since source was already a pointer, it should just use source. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 079d9c3 commit bd254ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bluetooth/tester/src/audio/btp_bap_broadcast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static int btp_bap_broadcast_local_source_free(struct btp_bap_broadcast_local_so
8989
return -EINVAL;
9090
}
9191

92-
memset(&source, 0, sizeof(*source));
92+
memset(source, 0, sizeof(*source));
9393

9494
return 0;
9595
}

0 commit comments

Comments
 (0)