mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed uninitialized variable in FreeBSD joystick.
Patch by Marcus von Appen. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -303,11 +303,11 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy)
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user