mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 06:58:30 +00:00
Fix warnings: calloc-transposed-args
This commit is contained in:

committed by
Sam Lantinga

parent
0da2bd49c8
commit
d2ef15d8e6
@@ -1086,7 +1086,7 @@ SDL_Joystick *SDL_OpenJoystick(SDL_JoystickID instance_id)
|
||||
}
|
||||
|
||||
// Create and initialize the joystick
|
||||
joystick = (SDL_Joystick *)SDL_calloc(sizeof(*joystick), 1);
|
||||
joystick = (SDL_Joystick *)SDL_calloc(1, sizeof(*joystick));
|
||||
if (!joystick) {
|
||||
SDL_UnlockJoysticks();
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user