]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 29 Oct 2017 23:20:57 +0000 (19:20 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 29 Oct 2017 23:20:57 +0000 (19:20 -0400)
MagickCore/blob.c

index 64b694d08202092fefc254a285701e1066b1b7f8..800b8b4ee7aa68f064144ec56d6441373573f94f 100644 (file)
@@ -636,10 +636,10 @@ MagickExport MagickBooleanType CloseBlob(Image *image)
       break;
     case BlobStream:
     {
-      if ((blob_info->file_info.file != (FILE *) NULL) &&
-          (blob_info->synchronize != MagickFalse))
+      if (blob_info->file_info.file != (FILE *) NULL)
         {
-          (void) fsync(fileno(blob_info->file_info.file));
+          if (blob_info->synchronize != MagickFalse)
+            status=fsync(fileno(blob_info->file_info.file));
           status=ferror(blob_info->file_info.file);
         }
       break;