Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11gl.c @ 4312:f2f8525e60c2 SDL-1.2
Debian patch: 310_segfault_noGLX.diff
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 10 Oct 2009 10:10:36 +0000 |
parents | 485868a1c283 |
children | d380e7a6265b |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gl.c Sat Oct 10 10:09:01 2009 +0000 +++ b/src/video/x11/SDL_x11gl.c Sat Oct 10 10:10:36 2009 +0000 @@ -77,6 +77,11 @@ /* 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;