shithub: cstory

Download patch

ref: 77e00a93291d6f1d7d2011d540471ef64d094831
parent: 1a5da443d715bb928436ea341ddfa9eee444918a
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Apr 11 20:55:53 EDT 2020

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

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Backends/GLFW3/Controller.cpp
+++ b/src/Backends/GLFW3/Controller.cpp
@@ -45,7 +45,7 @@
 						// 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];