From 9c578df02391dbc34d61ac8fc03fc9116a3187cf Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Tue, 12 May 2015 10:06:21 +0200 Subject: [PATCH] android/avdtptest: Fix NULL local stream endpoint queue This patch fixes missing queue_new() --- android/avdtptest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/avdtptest.c b/android/avdtptest.c index f42f66488..2e07d7ec3 100644 --- a/android/avdtptest.c +++ b/android/avdtptest.c @@ -866,6 +866,12 @@ int main(int argc, char *argv[]) } } + lseps = queue_new(); + if (!lseps) { + printf("Failed to allocate memory\n"); + exit(0); + } + local_sep = avdtp_register_sep(lseps, dev_role, AVDTP_MEDIA_TYPE_AUDIO, 0x00, TRUE, &sep_ind, &sep_cfm, NULL); if (!local_sep) { -- 2.47.3