diff --git a/src/video/x11/SDL_x11gl.c b/src/video/x11/SDL_x11gl.c index a2aa54dfb..a3190ddd8 100644 --- a/src/video/x11/SDL_x11gl.c +++ b/src/video/x11/SDL_x11gl.c @@ -77,6 +77,11 @@ static int glXExtensionSupported(_THIS, const char *extension) /* It takes a bit of care to be fool-proof about parsing the * OpenGL extensions string. Don't be fooled by sub-strings, etc. */ + + /* http://bugs.debian.org/537487 */ + if (extensions == NULL) { + return 0; + } start = extensions;