Backends/GLFW3/Controller: Use != NULL
instead of implicit conversion to bool
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
1a5da443d7
commit
77e00a9329
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue