mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Fixed invalid pointer when Xrandr is unavailable.
Fixes #497. Closes #498.
This commit is contained in:
parent
b415b9aacf
commit
ad1739c63f
|
@ -201,7 +201,7 @@ void _glfwRestoreVideoMode(_GLFWmonitor* monitor)
|
|||
_GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
||||
{
|
||||
int i, j, k, found = 0;
|
||||
_GLFWmonitor** monitors;
|
||||
_GLFWmonitor** monitors = NULL;
|
||||
|
||||
*count = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user