mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 07:28:30 +00:00
Removed unnecessary NULL assignment
This commit is contained in:
@@ -1054,15 +1054,11 @@ SDL_Joystick *SDL_OpenJoystick(SDL_JoystickID instance_id)
|
|||||||
joystickname = driver->GetDeviceName(device_index);
|
joystickname = driver->GetDeviceName(device_index);
|
||||||
if (joystickname) {
|
if (joystickname) {
|
||||||
joystick->name = SDL_strdup(joystickname);
|
joystick->name = SDL_strdup(joystickname);
|
||||||
} else {
|
|
||||||
joystick->name = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
joystickpath = driver->GetDevicePath(device_index);
|
joystickpath = driver->GetDevicePath(device_index);
|
||||||
if (joystickpath) {
|
if (joystickpath) {
|
||||||
joystick->path = SDL_strdup(joystickpath);
|
joystick->path = SDL_strdup(joystickpath);
|
||||||
} else {
|
|
||||||
joystick->path = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
joystick->guid = driver->GetDeviceGUID(device_index);
|
joystick->guid = driver->GetDeviceGUID(device_index);
|
||||||
|
Reference in New Issue
Block a user