summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-25 18:23:57 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-25 18:23:57 +0200
commit98af825f45d896359f96d6a8059b79ca0727fa8e (patch)
treea271a10bdca9ed127235f8c0ff437c8984969dfb
parent88d31e26283eb19739441e15f81b862ae9a4ec6e (diff)
Fix uninitialized memory warning
-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,