From 44dfe244cf269e549b971577121eee09ef1c539b Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 13 Apr 2015 13:37:15 -0700 Subject: [PATCH] FIX: Should be null in case of no monitors --- 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 3ed6c9735..2bbc07768 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;