]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 27 Dec 2012 00:41:55 +0000 (00:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 27 Dec 2012 00:41:55 +0000 (00:41 +0000)
MagickCore/blob.c

index be313f67e209535bc6603f306d7fbad71a786102..25657c2f81972c1e1ba51f4bfe5b295627480e3f 100644 (file)
@@ -547,7 +547,10 @@ MagickExport MagickBooleanType CloseBlob(Image *image)
     {
       if ((image->blob->file_info.file != (FILE *) NULL) &&
           (image->blob->synchronize != MagickFalse))
-        (void) fsync(fileno(image->blob->file_info.file));
+        {
+          (void) fsync(fileno(image->blob->file_info.file));
+          status=ferror(image->blob->file_info.file);
+        }
       break;
     }
   }