Changeset 11652 for ImageMagick/trunk

Show
Ignore:
Timestamp:
07/17/08 09:19:43 (6 weeks ago)
Author:
cristy
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/magick/blob.c

    r11445 r11652  
    13911391        { 
    13921392          blob_info->file=fdopen(file,"wb"); 
    1393           (void) FormatMagickString(image->filename,MaxTextExtent,"%s:%s", 
    1394             image->magick,unique); 
    1395           status=WriteImage(blob_info,image); 
    1396           if (status == MagickFalse) 
    1397             InheritException(exception,&image->exception); 
    1398           else 
    1399             blob=FileToBlob(image->filename,~0UL,length,exception); 
     1393          if (blob_info->file != (FILE *) NULL) 
     1394            { 
     1395              (void) FormatMagickString(image->filename,MaxTextExtent,"%s:%s", 
     1396                image->magick,unique); 
     1397              status=WriteImage(blob_info,image); 
     1398              (void) fclose(blob_info->file); 
     1399              if (status == MagickFalse) 
     1400                InheritException(exception,&image->exception); 
     1401              else 
     1402                blob=FileToBlob(image->filename,~0UL,length,exception); 
     1403            } 
    14001404          (void) RelinquishUniqueFileResource(unique); 
    14011405        } 
     
    16711675        { 
    16721676          blob_info->file=fdopen(file,"wb"); 
    1673           (void) FormatMagickString(filename,MaxTextExtent,"%s:%s", 
    1674             images->magick,unique); 
    1675           status=WriteImages(blob_info,images,filename,exception); 
    1676           if (status == MagickFalse) 
    1677             InheritException(exception,&images->exception); 
    1678           else 
    1679             blob=FileToBlob(images->filename,~0UL,length,exception); 
     1677          if (blob_info->file != (FILE *) NULL) 
     1678            { 
     1679              (void) FormatMagickString(filename,MaxTextExtent,"%s:%s", 
     1680                images->magick,unique); 
     1681              status=WriteImages(blob_info,images,filename,exception); 
     1682              (void) fclose(blob_info->file); 
     1683              if (status == MagickFalse) 
     1684                InheritException(exception,&images->exception); 
     1685              else 
     1686                blob=FileToBlob(images->filename,~0UL,length,exception); 
     1687            } 
    16801688          (void) RelinquishUniqueFileResource(unique); 
    16811689        }