Debian patch: 310_segfault_noGLX.diff SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 10 Oct 2009 10:10:36 +0000
branchSDL-1.2
changeset 4312f2f8525e60c2
parent 4311 1238da4a7112
child 4313 8ec3036098df
Debian patch: 310_segfault_noGLX.diff
src/video/x11/SDL_x11gl.c
     1.1 --- a/src/video/x11/SDL_x11gl.c	Sat Oct 10 10:09:01 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11gl.c	Sat Oct 10 10:10:36 2009 +0000
     1.3 @@ -77,6 +77,11 @@
     1.4  	/* It takes a bit of care to be fool-proof about parsing the
     1.5  	 * OpenGL extensions string. Don't be fooled by sub-strings, etc.
     1.6  	 */
     1.7 +
     1.8 +	/* http://bugs.debian.org/537487 */
     1.9 +	if (extensions == NULL) {
    1.10 +	      return 0;
    1.11 +	}
    1.12  	
    1.13  	start = extensions;
    1.14