From: cristy Date: Sun, 11 Mar 2012 02:56:37 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6056 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53ac66f4c2e78359b81fb05496c2dfd84715ac31;p=imagemagick --- diff --git a/MagickCore/delegate.c b/MagickCore/delegate.c index 73a98f74a..2cff2b5c1 100644 --- a/MagickCore/delegate.c +++ b/MagickCore/delegate.c @@ -763,6 +763,9 @@ static MagickBooleanType CopyDelegateFile(const char *source, destination_file, source_file; + MagickBooleanType + status; + register size_t i; @@ -784,6 +787,9 @@ 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)) + return(MagickTrue); destination_file=open_utf8(destination,O_WRONLY | O_BINARY | O_CREAT,S_MODE); if (destination_file == -1) return(MagickFalse);