Diff between 5cc71d9a561f689d3b9a81e68b3378c6abb594ac and e80a68defc0e0828faa72ed95e1e24a530830cec

Changed Files

File Additions Deletions Status
profiles/audio/a2dp.c +1 -1 modified

Full Patch

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index ad21df3..6a86c19 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -1418,7 +1418,7 @@ struct a2dp_sep *a2dp_add_sep(struct btd_adapter *adapter, uint8_t type,
 	avdtp_server = find_avdtp_server(avdtp_servers, adapter);
 	if (!avdtp_server) {
 		avdtp_server = avdtp_server_init(adapter);
-		if (!server)
+		if (!avdtp_server)
 			return NULL;
 	}