check for null pointer in Fake_glXCreateGLXPbufferSGIGIX() (bug 961376)

This commit is contained in:
Brian Paul 2004-05-29 14:41:52 +00:00
parent 2ac56c66d2
commit 11b3028e7b
1 changed files with 2 additions and 2 deletions

View 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++;