Browse Source

Fix a maybe-uninitialized warning on GCC 4.9

Camilla Berglund 10 năm trước cách đây
mục cha
commit
a02aeaf972
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/glx_context.c

+ 1 - 1
src/glx_context.c

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