Backends/GLFW3/Controller: Use != NULL instead of implicit conversion to bool

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-04-12 00:55:53 +02:00
parent 1a5da443d7
commit 77e00a9329

View file

@ -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];