diff options
author | Chia-I Wu <[email protected]> | 2010-09-10 00:02:47 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-09-10 00:18:14 +0800 |
commit | 08a482e7a9d13db5d4e6fd974942f6699d7d49dc (patch) | |
tree | 1894296cea84822900f5fe1a623ed5cd9586655e /src/egl/main/eglscreen.c | |
parent | 3ec296390c250dbcdc2690e78da9a51ec57dabf5 (diff) |
egl: Display may be NULL in _eglLookup*.
This fixes several NULL dereferences.
Diffstat (limited to 'src/egl/main/eglscreen.c')
-rw-r--r-- | src/egl/main/eglscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglscreen.c b/src/egl/main/eglscreen.c index 8b8966f3ffd..9e39335cc7a 100644 --- a/src/egl/main/eglscreen.c +++ b/src/egl/main/eglscreen.c @@ -69,7 +69,7 @@ _eglLookupScreen(EGLScreenMESA screen, _EGLDisplay *display) { EGLint i; - if (!display->Screens) + if (!display || !display->Screens) return NULL; for (i = 0; i < display->Screens->Size; i++) { |