]> granicus.if.org Git - imagemagick/commitdiff
Removed printf statements.
authorDirk Lemstra <dirk@git.imagemagick.org>
Fri, 11 Aug 2017 09:22:47 +0000 (11:22 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Fri, 11 Aug 2017 09:22:47 +0000 (11:22 +0200)
coders/meta.c

index 1f5fbfab78b8d8c49765c6fd08bb5336a62a2d1b..f1f65ced980b24e19295ec3834af3e904b18c9e8 100644 (file)
@@ -1925,10 +1925,7 @@ static int formatIPTC(Image *ifile, Image *ofile)
     str=(unsigned char *) AcquireQuantumMemory((size_t) (taglen+MagickPathExtent),
       sizeof(*str));
     if (str == (unsigned char *) NULL)
-      {
-        printf("MemoryAllocationFailed");
-        return(0);
-      }
+      return(0);
     for (tagindx=0; tagindx<taglen; tagindx++)
     {
       c=ReadBlobByte(ifile);
@@ -2061,10 +2058,7 @@ static int formatIPTCfromBuffer(Image *ofile, char *s, ssize_t len)
     str=(unsigned char *) AcquireQuantumMemory((size_t) (taglen+MagickPathExtent),
       sizeof(*str));
     if (str == (unsigned char *) NULL)
-      {
-        printf("MemoryAllocationFailed");
-        return 0;
-      }
+      printf("MemoryAllocationFailed");
     for (tagindx=0; tagindx<taglen; tagindx++)
     {
       c = *s++; len--;
@@ -2158,10 +2152,7 @@ static int format8BIM(Image *ifile, Image *ofile)
       PString=(unsigned char *) AcquireQuantumMemory((size_t) (plen+
         MagickPathExtent),sizeof(*PString));
       if (PString == (unsigned char *) NULL)
-        {
-          printf("MemoryAllocationFailed");
-          return 0;
-        }
+        return 0;
       for (i=0; i<plen; i++)
       {
         c=ReadBlobByte(ifile);
@@ -2194,7 +2185,6 @@ static int format8BIM(Image *ifile, Image *ofile)
     if (str == (unsigned char *) NULL)
       {
         PString=(unsigned char *) RelinquishMagickMemory(PString);
-        printf("MemoryAllocationFailed");
         return 0;
       }
     for (i=0; i < (ssize_t) count; i++)