diff --git a/src/monitor.c b/src/monitor.c index 3ce80f41..87a1aef6 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -44,12 +44,12 @@ GLFWAPI GLFWmonitor glfwGetNextMonitor(GLFWmonitor handle) { _GLFWmonitor* iterator = (_GLFWmonitor*) handle; - _GLFWmonitor* result = NULL; + _GLFWmonitor* result; if (!_glfwInitialized) { _glfwSetError(GLFW_NOT_INITIALIZED, NULL); - return result; + return NULL; } if (iterator == NULL)