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

index 402308c839d01fd5a1723bf21277609aad08bb3d..6c9d0727408530ee98ed28889bbc921cc5c27844 100644 (file)
@@ -665,9 +665,6 @@ static MagickBooleanType WriteDistributeCacheMetacontent(
   Image
     *image;
 
-  MagickBooleanType
-    status;
-
   MagickOffsetType
     count;
 
@@ -715,10 +712,9 @@ static MagickBooleanType WriteDistributeCacheMetacontent(
     return(MagickFalse);
   metacontent=GetAuthenticMetacontent(image);
   count=dpc_read(file,length,metacontent);
-  status=SyncAuthenticPixels(image,exception);
   if (count != (MagickOffsetType) length)
     return(MagickFalse);
-  return(status);
+  return(SyncAuthenticPixels(image,exception));
 }
 
 static MagickBooleanType WriteDistributeCachePixels(SplayTreeInfo *registry,
@@ -727,9 +723,6 @@ static MagickBooleanType WriteDistributeCachePixels(SplayTreeInfo *registry,
   Image
     *image;
 
-  MagickBooleanType
-    status;
-
   MagickOffsetType
     count;
 
@@ -775,10 +768,9 @@ static MagickBooleanType WriteDistributeCachePixels(SplayTreeInfo *registry,
   if (q == (Quantum *) NULL)
     return(MagickFalse);
   count=dpc_read(file,length,(unsigned char *) q);
-  status=SyncAuthenticPixels(image,exception);
   if (count != (MagickOffsetType) length)
     return(MagickFalse);
-  return(status);
+  return(SyncAuthenticPixels(image,exception));
 }
 
 static void *DistributePixelCacheClient(void *socket)