src/video/x11/SDL_x11gl.c
branchSDL-1.2
changeset 4312 f2f8525e60c2
parent 4290 485868a1c283
child 4343 d380e7a6265b
--- 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;