
wiiuse-0.2-12 Archlinux AUR Patch
By: a guest on
Jun 20th, 2010 | syntax:
C | size: 0.59 KB | hits: 134 | expires: Never
*** old/src/io_nix.c 2008-03-29 22:53:32.000000000 +0100
--- new/src/io_nix.c 2010-06-17 15:59:13.000000000 +0200
***************
*** 170,176 ****
*/
static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
struct sockaddr_l2 addr;
!
if (!wm || WIIMOTE_IS_CONNECTED(wm))
return 0;
--- 170,176 ----
*/
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;