]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 17 Jan 2013 20:16:29 +0000 (20:16 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 17 Jan 2013 20:16:29 +0000 (20:16 +0000)
MagickCore/distribute-cache.c

index 823d89ad946dd4842b9eae943454407376daeb04..ae8e33a59de3620426dcd28f72138c66879f2170 100644 (file)
@@ -412,6 +412,8 @@ static MagickBooleanType OpenDistributeCache(SplayTreeInfo *image_registry,
   exception=AcquireExceptionInfo();
   image=AcquireImage((ImageInfo *) NULL,exception);
   exception=DestroyExceptionInfo(exception);
+  if (image == (Image *) NULL)
+    return(MagickFalse);
   length=sizeof(image->columns)+sizeof(image->rows)+
     sizeof(image->number_channels);
   count=read(file,buffer,length);