Przeglądaj źródła

Fix a maybe-uninitialized warning on GCC 4.9

Camilla Berglund 10 lat temu
rodzic
commit
a02aeaf972
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/glx_context.c

+ 1 - 1
src/glx_context.c

@@ -280,7 +280,7 @@ int _glfwCreateContext(_GLFWwindow* window,
                        const _GLFWfbconfig* fbconfig)
 {
     int attribs[40];
-    GLXFBConfig native;
+    GLXFBConfig native = NULL;
     GLXContext share = NULL;
 
     if (ctxconfig->share)