summaryrefslogtreecommitdiff
path: root/src/egl/main/eglconfig.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-09-10 00:02:47 +0800
committerChia-I Wu <olv@lunarg.com>2010-09-10 00:18:14 +0800
commit08a482e7a9d13db5d4e6fd974942f6699d7d49dc (patch)
tree1894296cea84822900f5fe1a623ed5cd9586655e /src/egl/main/eglconfig.h
parent3ec296390c250dbcdc2690e78da9a51ec57dabf5 (diff)
egl: Display may be NULL in _eglLookup*.
This fixes several NULL dereferences.
Diffstat (limited to 'src/egl/main/eglconfig.h')
-rw-r--r--src/egl/main/eglconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h
index ca63c40d3d..0ad58cf473 100644
--- a/src/egl/main/eglconfig.h
+++ b/src/egl/main/eglconfig.h
@@ -117,7 +117,7 @@ static INLINE _EGLConfig *
_eglLookupConfig(EGLConfig config, _EGLDisplay *dpy)
{
_EGLConfig *conf = (_EGLConfig *) config;
- if (!_eglCheckConfigHandle(config, dpy))
+ if (!dpy || !_eglCheckConfigHandle(config, dpy))
conf = NULL;
return conf;
}