check for null pointer in Fake_glXCreateGLXPbufferSGIGIX() (bug 961376)
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 May 2004 14:41:52 +0000 (14:41 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 May 2004 14:41:52 +0000 (14:41 +0000)
src/mesa/drivers/x11/fakeglx.c

index 47882114cfcdc1c4c1c855e27e7d6f643843be68..3a8c79290045a0cb83fb8da9e2bab890064c10a1 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Mesa 3-D graphics library
- * Version:  6.0.1
+ * Version:  6.1
  *
  * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
  *
@@ -2397,7 +2397,7 @@ Fake_glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config,
 
    (void) dpy;
 
-   for (attrib = attribList; *attrib; attrib++) {
+   for (attrib = attribList; attrib && *attrib; attrib++) {
       switch (*attrib) {
          case GLX_PRESERVED_CONTENTS_SGIX:
             attrib++;