summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-05-29 14:41:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-05-29 14:41:52 +0000
commit11b3028e7ba2fc3b985ab84d7227c290608f83f6 (patch)
tree0583cbf289bb10a796fa226dac3cc2f3fce6b482
parent2ac56c66d2d935786eb76b9fea4f94a78cdc41ff (diff)
check for null pointer in Fake_glXCreateGLXPbufferSGIGIX() (bug 961376)
-rw-r--r--src/mesa/drivers/x11/fakeglx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 47882114cf..3a8c792900 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -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++;