From 2d855e12d2401777d867fa5f14bf8e390a55b66a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 14 Aug 2025 14:48:58 -0700 Subject: [PATCH] Fixed style --- src/joystick/hidapi/SDL_hidapi_lg4ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_lg4ff.c b/src/joystick/hidapi/SDL_hidapi_lg4ff.c index 901911985f..683b2d0c6c 100644 --- a/src/joystick/hidapi/SDL_hidapi_lg4ff.c +++ b/src/joystick/hidapi/SDL_hidapi_lg4ff.c @@ -277,7 +277,7 @@ static bool HIDAPI_DriverLg4ff_IsSupportedDevice( return true; } // a supported native mode is found, send mode change command, then still state that we support the device - if (device != NULL && SDL_HIDAPI_DriverLg4ff_GetEnvInt("SDL_HIDAPI_LG4FF_NO_MODE_SWITCH", 0, 1, 0) == 0) { + if (device && SDL_HIDAPI_DriverLg4ff_GetEnvInt("SDL_HIDAPI_LG4FF_NO_MODE_SWITCH", 0, 1, 0) == 0) { HIDAPI_DriverLg4ff_SwitchMode(device, real_id); } return true;