summaryrefslogtreecommitdiff
path: root/btio
diff options
context:
space:
mode:
authorAnderson Briglia <anderson.briglia@openbossa.org>2011-05-05 14:55:24 -0400
committerJohan Hedberg <johan.hedberg@nokia.com>2011-05-05 22:14:03 +0300
commitb8064300372044679d9b51e735a856c8820097fa (patch)
tree80fe9e5c57c632b1e442b320056355d2dd1e8972 /btio
parent60de2f6009642c032ad751339f2ad9cfd5c1025d (diff)
downloadbluez-b8064300372044679d9b51e735a856c8820097fa.tar.gz
Fix btio.c compilation warning
This patch fixes a compilation warning regarding btio/btio.c. Actually this warning seems a false positive by Ubuntu Natty GCC version. A new bug on Ubuntu bug system was opened but if you do not want to wait until it is analyzed, just apply this minor fix. btio/btio.c: In function 'bt_io_get': btio/btio.c:803:11: warning: 'flushable' may be used uninitialized in this function
Diffstat (limited to 'btio')
-rw-r--r--btio/btio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btio/btio.c b/btio/btio.c
index 6d71b90f2..a3cf38a30 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -800,7 +800,7 @@ static gboolean l2cap_get(int sock, GError **err, BtIOOption opt1,
uint8_t dev_class[3];
uint16_t handle;
socklen_t len;
- gboolean flushable;
+ gboolean flushable = FALSE;
len = sizeof(l2o);
memset(&l2o, 0, len);