Diff between 466fce0209a3878512672159168943047a9e2323 and 8fd0c76b41d35e24e10e45fcf57262482cb978a2

Changed Files

File Additions Deletions Status
src/shared/bap.c +1 -1 modified

Full Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index cf5d810..a0f5a0a 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -4306,7 +4306,7 @@ static struct bt_bap_req *bap_req_new(struct bt_bap_stream *stream,
 	static unsigned int id;
 
 	req = new0(struct bt_bap_req, 1);
-	req->id = ++id;
+	req->id = ++id ? id : ++id;
 	req->stream = stream;
 	req->op = op;
 	req->iov = util_iov_dup(iov, len);