OSDN Git Service

auto import from //branches/cupcake/...@132569
[android-x86/external-bluetooth-bluez.git] / utils / audio / sink.c
index 38ef2e6..dee0272 100644 (file)
@@ -379,7 +379,8 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp
        if (id == 0)
                goto failed;
 
-       pending->id = id;
+       if (pending)
+               pending->id = id;
        return;
 
 failed: