wiiuse/wiiuse_zero_addr.patch
Igor Gnatenko f6894e3bbe commit updated patch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-12-28 23:42:09 +01:00

12 lines
339 B
Diff

diff --git a/src/os_nix.c b/src/os_nix.c
index 9d5f62d..4b32a6d 100644
--- a/src/os_nix.c
+++ b/src/os_nix.c
@@ -180,6 +180,7 @@ static int wiiuse_os_connect_single(struct wiimote_t* wm, char* address) {
return 0;
}
+ memset(&addr, 0, sizeof(addr));
addr.l2_family = AF_BLUETOOTH;
bdaddr_t *bdaddr = &wm->bdaddr;
if (address)