diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-25 18:23:57 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-25 18:23:57 +0200 |
commit | 98af825f45d896359f96d6a8059b79ca0727fa8e (patch) | |
tree | a271a10bdca9ed127235f8c0ff437c8984969dfb | |
parent | 88d31e26283eb19739441e15f81b862ae9a4ec6e (diff) |
Fix uninitialized memory warning
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |