Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 81229b5413fca8f5ddd492e1efa816a2 > files > 7

gd-2.0.35-14.fc15.src.rpm

--- gd-2.0.35/gd_gd.c.pom	2006-04-05 17:52:22.000000000 +0200
+++ gd-2.0.35/gd_gd.c	2007-09-05 11:31:39.000000000 +0200
@@ -149,6 +149,10 @@ _gdCreateFromFile (gdIOCtx * in, int *sx
     {
       im = gdImageCreate (*sx, *sy);
     }
+  if (!im) 
+    { 
+      goto fail1; 
+    } 
   if (!_gdGetColors (in, im, gd2xFlag))
     {
       goto fail2;