Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates-src > by-pkgid > 1da0d06d312d94e3d0ca2fc7f10afcd3 > files > 4

alleggl-0.4.3-8.fc14.src.rpm

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;