From: dirk Date: Thu, 13 Mar 2014 19:02:15 +0000 (+0000) Subject: Fixed compiler warning. X-Git-Tag: 7.0.1-0~2587 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a75a707c821806ff73afec332069eb775e3d66e6;p=imagemagick Fixed compiler warning. --- diff --git a/MagickWand/wandcli.c b/MagickWand/wandcli.c index 79b41b9b0..e8c2abc0e 100644 --- a/MagickWand/wandcli.c +++ b/MagickWand/wandcli.c @@ -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()