summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-06-09 15:41:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-06-09 15:41:44 +0000
commit31530898cb8cba0952a1af0bfe8fd26806c7b075 (patch)
tree08cf8bcee614c353328346fccf1db96691671397
parent3fcf56f2a27bcd08dfecbdbe65820e385491ed42 (diff)
Fix uninitialised value error
-rw-r--r--src/hci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index 35aa9059..d5d7124f 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -762,6 +762,8 @@ int hci_devba(int dev_id, bdaddr_t *bdaddr)
{
struct hci_dev_info di;
+ memset(&di, 0, sizeof(di));
+
if (hci_devinfo(dev_id, &di))
return -1;