diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-24 09:28:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-24 09:38:54 +0000 |
commit | 83ea7e76da284be6380fcdadf9848276fcdd080a (patch) | |
tree | 5fc2ae236d77f39d7baac397cd68c028d9a62dab /vcl | |
parent | 6b7561a87a8c1f99d56da71fa222efb178ffc1aa (diff) |
coverity#1255907 Explicit null dereferenced
Change-Id: I5b7be6698e2028f9b882c2f7deb96739bc968098
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 46fc097fe409..a93185f385f4 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -549,7 +549,7 @@ GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC, bool bUseDoubl for(int i = 0; i < fbCount; ++i) { XVisualInfo* pVi = glXGetVisualFromFBConfig( dpy, pFBC[i] ); - if(pVi && (!bWithSameVisualID || pVi->visualid == xattr.visual->visualid) ) + if(pVi && (!bWithSameVisualID || (xattr.visual && pVi->visualid == xattr.visual->visualid)) ) { // pick the one with the most samples per pixel int nSampleBuf = 0; |