mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 00:47:39 +00:00
Removed unnecessary NULL assignment
This commit is contained in:
parent
75dd7e1658
commit
8ca9134115
1 changed files with 0 additions and 4 deletions
|
@ -1054,15 +1054,11 @@ SDL_Joystick *SDL_OpenJoystick(SDL_JoystickID instance_id)
|
|||
joystickname = driver->GetDeviceName(device_index);
|
||||
if (joystickname) {
|
||||
joystick->name = SDL_strdup(joystickname);
|
||||
} else {
|
||||
joystick->name = NULL;
|
||||
}
|
||||
|
||||
joystickpath = driver->GetDevicePath(device_index);
|
||||
if (joystickpath) {
|
||||
joystick->path = SDL_strdup(joystickpath);
|
||||
} else {
|
||||
joystick->path = NULL;
|
||||
}
|
||||
|
||||
joystick->guid = driver->GetDeviceGUID(device_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue