diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-06-09 15:41:44 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-06-09 15:41:44 +0000 |
commit | 31530898cb8cba0952a1af0bfe8fd26806c7b075 (patch) | |
tree | 08cf8bcee614c353328346fccf1db96691671397 | |
parent | 3fcf56f2a27bcd08dfecbdbe65820e385491ed42 (diff) |
Fix uninitialised value error
-rw-r--r-- | src/hci.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |