projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec2ea8
)
st/glx/xlib: check for null attrib_list in glXCreateContextAttribsARB()
author
Brian Paul
<brianp@vmware.com>
Fri, 30 Dec 2011 15:38:49 +0000
(08:38 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 30 Dec 2011 15:38:58 +0000
(08:38 -0700)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=44234
src/gallium/state_trackers/glx/xlib/glx_api.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/glx/xlib/glx_api.c
b/src/gallium/state_trackers/glx/xlib/glx_api.c
index d978286ff28ae27d6a53e4cd791234f18d4d68cf..b68882b1f9726f6e3dfa436aacac2cf15c979857 100644
(file)
--- a/
src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/
src/gallium/state_trackers/glx/xlib/glx_api.c
@@
-2665,7
+2665,7
@@
glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config,
GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB);
/* parse attrib_list */
- for (i = 0; !done && attrib_list[i]; i++) {
+ for (i = 0; !done && attrib_list
&& attrib_list
[i]; i++) {
switch (attrib_list[i]) {
case GLX_CONTEXT_MAJOR_VERSION_ARB:
majorVersion = attrib_list[++i];