desktop/wiiuse/io_nix.patch
2010-11-15 10:14:29 +00:00

12 lines
419 B
Diff

diff -Naur wiiuse_v0.12.orig/src/io_nix.c wiiuse_v0.12/src/io_nix.c
--- wiiuse_v0.12.orig/src/io_nix.c 2008-03-29 21:53:32.000000000 +0000
+++ wiiuse_v0.12/src/io_nix.c 2010-11-15 10:11:46.779999704 +0000
@@ -170,6 +170,7 @@
*/
static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
struct sockaddr_l2 addr;
+ memset(&addr, 0, sizeof (addr));
if (!wm || WIIMOTE_IS_CONNECTED(wm))
return 0;