From 77e00a93291d6f1d7d2011d540471ef64d094831 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Sun, 12 Apr 2020 00:55:53 +0200 Subject: [PATCH] Backends/GLFW3/Controller: Use `!= NULL` instead of implicit conversion to `bool` Signed-off-by: Gabriel Ravier --- src/Backends/GLFW3/Controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/GLFW3/Controller.cpp b/src/Backends/GLFW3/Controller.cpp index 7220c0c6..19ded45e 100644 --- a/src/Backends/GLFW3/Controller.cpp +++ b/src/Backends/GLFW3/Controller.cpp @@ -45,7 +45,7 @@ static void JoystickCallback(int joystick_id, int event) // Set up neutral axes axis_neutrals = (float*)malloc(sizeof(float) * total_axes); - if (axis_neutrals) + if (axis_neutrals != NULL) { for (int i = 0; i < total_axes; ++i) axis_neutrals[i] = axes[i];