Commit 2570f36a authored by Ryan C. Gordon's avatar Ryan C. Gordon

Merged r5547:5548 from branches/SDL-1.2: FreeBSD joystick uninit'd var fix.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404462
parent b4ec7928
...@@ -307,11 +307,11 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joy) ...@@ -307,11 +307,11 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joy)
strerror(errno)); strerror(errno));
goto usberr; goto usberr;
} }
rep = &hw->inreport;
#if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063) #if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063)
rep->rid = hid_get_report_id(fd); rep->rid = hid_get_report_id(fd);
if (rep->rid < 0) { if (rep->rid < 0) {
#else #else
rep = &hw->inreport;
if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) { if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) {
#endif #endif
rep->rid = -1; /* XXX */ rep->rid = -1; /* XXX */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment