]> granicus.if.org Git - imagemagick/commitdiff
Fixed compiler warning.
authordirk <dirk@git.imagemagick.org>
Thu, 13 Mar 2014 19:02:15 +0000 (19:02 +0000)
committerdirk <dirk@git.imagemagick.org>
Thu, 13 Mar 2014 19:02:15 +0000 (19:02 +0000)
MagickWand/wandcli.c

index 79b41b9b032d68870e47b9b3d63d923ae1f0c187..e8c2abc0efed8dd1fa425b78e78cf316218eec97 100644 (file)
@@ -89,11 +89,8 @@ WandExport MagickCLI *AcquireMagickCLI(ImageInfo *image_info,
   /* allocate memory for MgaickCLI */
   cli_wand=(MagickCLI *) AcquireMagickMemory(sizeof(*cli_wand));
   if (cli_wand == (MagickCLI *) NULL)
-    {
-      ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
-        GetExceptionMessage(errno));
-      return((MagickCLI *)NULL);
-    }
+    ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
+      GetExceptionMessage(errno));
 
   /* Initialize Wand Part of MagickCLI
      FUTURE: this is a repeat of code from NewMagickWand()