Mercurial > sdl-ios-xcode
changeset 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 | 1238da4a7112 |
children | 8ec3036098df |
files | src/video/x11/SDL_x11gl.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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;