egl: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Fri, 14 May 2010 15:58:23 +0000 (08:58 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 14 May 2010 15:59:42 +0000 (08:59 -0700)
src/egl/main/eglapi.c

index 923992da48bc3c47bdbf6bbf65938daf789fc3e2..1a533e0880ba9a61b867dbe90e3d50d6ee7ccf1d 100644 (file)
@@ -261,7 +261,7 @@ EGLBoolean EGLAPIENTRY
 eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
 {
    _EGLDisplay *disp = _eglLockDisplay(dpy);
-   EGLint major_int, minor_int;
+   EGLint major_int = 0, minor_int = 0;
 
    if (!disp)
       RETURN_EGL_ERROR(NULL, EGL_BAD_DISPLAY, EGL_FALSE);