Mercurial > sdl-ios-xcode
changeset 4401:1a7b62893c9d SDL-1.2
Fixed uninitialized variable in FreeBSD joystick.
Patch by Marcus von Appen.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 05 Feb 2010 19:20:49 +0000 |
parents | 9134017bac3a |
children | ed7b8e3520b5 |
files | src/joystick/bsd/SDL_sysjoystick.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/joystick/bsd/SDL_sysjoystick.c Sun Jan 24 20:08:14 2010 +0000 +++ b/src/joystick/bsd/SDL_sysjoystick.c Fri Feb 05 19:20:49 2010 +0000 @@ -303,11 +303,11 @@ strerror(errno)); goto usberr; } + rep = &hw->inreport; #if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063) rep->rid = hid_get_report_id(fd); if (rep->rid < 0) { #else - rep = &hw->inreport; if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) { #endif rep->rid = -1; /* XXX */