From d870805068eddba3b067a9d3ab322549390f06f7 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Sun, 12 Apr 2020 01:03:18 +0200 Subject: [PATCH] Backends/SDL2/Controller: `x` -> `x != NULL` and fixed unequal braces Signed-off-by: Gabriel Ravier --- src/Backends/SDL2/Controller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Backends/SDL2/Controller.cpp b/src/Backends/SDL2/Controller.cpp index 37d47d05..e710a167 100644 --- a/src/Backends/SDL2/Controller.cpp +++ b/src/Backends/SDL2/Controller.cpp @@ -142,8 +142,10 @@ BOOL ControllerBackend_ResetJoystickStatus(void) void ControllerBackend_JoystickConnect(Sint32 joystick_id) { const char *joystick_name = SDL_JoystickNameForIndex(joystick_id); - if (joystick_name) + if (joystick_name != NULL) + { Backend_PrintInfo("Joystick #%d connected - %s", joystick_id, joystick_name); + } else { Backend_PrintError("Couldn't get joystick name: %s", SDL_GetError());