From ad1739c63fc8cbf00b1dc4da551afa1f31062bf2 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 13 Apr 2015 13:37:15 -0700 Subject: [PATCH] Fixed invalid pointer when Xrandr is unavailable. Fixes #497. Closes #498. --- src/x11_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 960bb04c..69d87253 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -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;