From 8ca9134115d6649c8861b835d3af2e692d85239b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 17 Jan 2024 13:47:11 -0800 Subject: [PATCH] Removed unnecessary NULL assignment --- src/joystick/SDL_joystick.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index d60a20a45..284a270f8 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -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);