瀏覽代碼

Fixed uninitialized variable.

Camilla Berglund 12 年之前
父節點
當前提交
28bf3f700d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/egl_context.c

+ 1 - 1
src/egl_context.c

@@ -155,7 +155,7 @@ int _glfwCreateContext(_GLFWwindow* window,
                        const _GLFWfbconfig* fbconfig)
 {
     int attribs[40];
-    EGLint count;
+    EGLint count = 0;
     EGLConfig config;
     EGLContext share = NULL;