Mesa (master): glut: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 14 10:04:57 UTC 2010


Module: Mesa
Branch: master
Commit: 0a3e3621752be5b054739ce606cad4f77cb65049
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a3e3621752be5b054739ce606cad4f77cb65049

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Feb 14 02:04:17 2010 -0800

glut: Silence uninitialized variable warning.

---

 src/glut/glx/glut_overlay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glut/glx/glut_overlay.c b/src/glut/glx/glut_overlay.c
index db1abe0..3243465 100644
--- a/src/glut/glx/glut_overlay.c
+++ b/src/glut/glx/glut_overlay.c
@@ -388,6 +388,7 @@ glutEstablishOverlay(void)
   if (!overlay->vis) {
     __glutFatalError("lacks overlay support.");
   }
+  overlay->ctx = NULL;
 #if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_fbconfig)
   if (fbc) {
     window->ctx = __glut_glXCreateContextWithConfigSGIX(__glutDisplay, fbc,




More information about the mesa-commit mailing list