bluez: Fix garbage return value in gst_avdtp_sink_audioservice_recv
authorSzymon Janc <szymon.janc@tieto.com>
Mon, 9 May 2011 13:26:07 +0000 (15:26 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:12 +0000 (14:30 +0000)
sys/bluez/gstavdtpsink.c

index 88c0c49..55c15fc 100644 (file)
@@ -1839,7 +1839,7 @@ gst_avdtp_sink_audioservice_recv (GstAvdtpSink * self,
   ssize_t bytes_read;
   const char *type, *name;
   uint16_t length;
-  int fd, err;
+  int fd, err = 0;
 
   length = inmsg->length ? inmsg->length : BT_SUGGESTED_BUFFER_SIZE;