]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 16 Sep 2011 00:41:11 +0000 (00:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 16 Sep 2011 00:41:11 +0000 (00:41 +0000)
MagickCore/delegate.c
coders/html.c

index 049b11d0e8517aa6043465cb0e5e8e096a4aab05..e18bd181abb9f2e292fcbdd36879e12c84debc3a 100644 (file)
@@ -788,7 +788,7 @@ static MagickBooleanType CopyDelegateFile(const char *source,
   assert(source != (const char *) NULL);
   assert(destination != (char *) NULL);
   status=GetPathAttributes(destination,&attributes);
-  if ((status != MagickFalse) && (attributes.st_size != 0))
+  if (status != MagickFalse)
     return(MagickTrue);
   /*
     Copy source file to destination.
@@ -904,8 +904,7 @@ MagickExport MagickBooleanType InvokeDelegate(ImageInfo *image_info,
         }
       image_info->temporary=MagickTrue;
     }
-  if ((delegate_info->mode != 0) &&
-      (((decode != (const char *) NULL) &&
+  if ((delegate_info->mode != 0) && (((decode != (const char *) NULL) &&
         (delegate_info->encode != (char *) NULL)) ||
        ((encode != (const char *) NULL) &&
         (delegate_info->decode != (char *) NULL))))
index ba387910e07a59eb00fd4bdc506811910b1f3408..97e1673a278133e6f11f7b52f43fef0553fe468d 100644 (file)
@@ -260,7 +260,7 @@ static MagickBooleanType WriteHTMLImage(const ImageInfo *image_info,
         Extract URL base from filename.
       */
       p=strrchr(image->filename,'/');
-      if (p)
+      if (p != (char *) NULL)
         {
           p++;
           (void) CopyMagickString(url,image_info->magick,MaxTextExtent);
@@ -292,8 +292,6 @@ static MagickBooleanType WriteHTMLImage(const ImageInfo *image_info,
         Open output image file.
       */
       assert(exception != (ExceptionInfo *) NULL);
-  assert(exception->signature == MagickSignature);
-  status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
       if (status == MagickFalse)
         return(status);
       /*