summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a7afcbf8..3c7d70bb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -732,6 +732,7 @@ int main(int argc, char *argv[])
exit(1);
}
+ memset(&addr, 0, sizeof(addr));
addr.hci_family = AF_BLUETOOTH;
addr.hci_dev = HCI_DEV_NONE;
if (bind(main_opts.sock, (struct sockaddr *) &addr,