summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMariusz Skamra <mariusz.skamra@tieto.com>2015-05-12 10:06:21 +0200
committerSzymon Janc <szymon.janc@tieto.com>2015-05-13 16:51:34 +0200
commit9c578df02391dbc34d61ac8fc03fc9116a3187cf (patch)
treeb20328c18116488f7feed9150282a636e1cc6595 /android
parent7f654a88df57b91a77f07ede58876d198d4980c1 (diff)
downloadbluez-9c578df02391dbc34d61ac8fc03fc9116a3187cf.tar.gz
android/avdtptest: Fix NULL local stream endpoint queue
This patch fixes missing queue_new()
Diffstat (limited to 'android')
-rw-r--r--android/avdtptest.c6
1 files changed, 6 insertions, 0 deletions
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) {