# HG changeset patch # User Sam Lantinga # Date 1255169436 0 # Node ID f2f8525e60c21beefa8956e43a07ea2f5c12bc33 # Parent 1238da4a7112100bea82b6ae023394f3144df1b8 Debian patch: 310_segfault_noGLX.diff diff -r 1238da4a7112 -r f2f8525e60c2 src/video/x11/SDL_x11gl.c --- 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;