hid: Fixed memset in hidJoystickRead().

This commit is contained in:
yellows8 2020-11-19 12:57:44 -05:00 committed by fincs
parent 1c82758c03
commit dc0bc2ab7b
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -853,7 +853,7 @@ void hidJoystickRead(JoystickPosition *pos, HidControllerID id, HidControllerJoy
if (pos) {
if (id < 0 || id > 9 || stick >= JOYSTICK_NUM_STICKS) {
memset(pos, 0, sizeof(touchPosition));
memset(pos, 0, sizeof(*pos));
return;
}