Blob Blame History Raw
diff -up alleggl/src/glext.c~ alleggl/src/glext.c
--- alleggl/src/glext.c~	2007-05-15 15:37:46.000000000 +0200
+++ alleggl/src/glext.c	2010-12-01 08:51:23.631386748 +0100
@@ -450,6 +450,12 @@ static void __fill_in_info_struct(const 
                                   struct allegro_gl_info *info) {
 	const char *renderer = (const char*)rendereru;
 	
+	/* The render string can be NULL ?? See:
+	   https://bugzilla.redhat.com/show_bug.cgi?id=658758 */
+	if (renderer == NULL) {
+		renderer = "foobar";
+	}
+	
 	/* Some cards are "special"... */
 	if (strstr(renderer, "3Dfx/Voodoo")) {
 		info->is_voodoo = 1;