mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
FIX: Should be null in case of no monitors
This commit is contained in:
parent
5733b0e4cb
commit
44dfe244cf
@ -201,7 +201,7 @@ void _glfwRestoreVideoMode(_GLFWmonitor* monitor)
|
|||||||
_GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
_GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
||||||
{
|
{
|
||||||
int i, j, k, found = 0;
|
int i, j, k, found = 0;
|
||||||
_GLFWmonitor** monitors;
|
_GLFWmonitor** monitors = NULL;
|
||||||
|
|
||||||
*count = 0;
|
*count = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user