]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 11 Oct 2011 00:04:41 +0000 (00:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 11 Oct 2011 00:04:41 +0000 (00:04 +0000)
MagickCore/string.c

index fa6eeebbaee88743b91af0503132f911ab56aba4..621eb2bcd485abfbd136eb2516b50d48ad17d1f0 100644 (file)
@@ -734,6 +734,8 @@ MagickExport size_t CopyMagickString(char *destination,const char *source,
   register size_t
     n;
 
+  if (source == (const char *) NULL)
+    return(0);
   p=source;
   q=destination;
   for (n=length; n > 4; n-=4)