projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae4444
)
egl: added null ptr check
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 16:20:06 +0000
(10:20 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 16:20:06 +0000
(10:20 -0600)
src/egl/main/eglconfig.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglconfig.c
b/src/egl/main/eglconfig.c
index 794a783b9e254ad5bc738219abe1f2c471568863..3ef0564a5489e536e3b29c520922c0e959c4b0ea 100644
(file)
--- a/
src/egl/main/eglconfig.c
+++ b/
src/egl/main/eglconfig.c
@@
-340,8
+340,10
@@
_eglChooseConfig(_EGLDriver *drv, EGLDisplay dpy, const EGLint *attrib_list,
qsort(configList, count, sizeof(_EGLConfig *), _eglCompareConfigs);
/* copy config handles to output array */
- for (i = 0; i < count; i++) {
- configs[i] = configList[i]->Handle;
+ if (configs) {
+ for (i = 0; i < count; i++) {
+ configs[i] = configList[i]->Handle;
+ }
}
free(configList);