From a75a707c821806ff73afec332069eb775e3d66e6 Mon Sep 17 00:00:00 2001 From: dirk Date: Thu, 13 Mar 2014 19:02:15 +0000 Subject: [PATCH] Fixed compiler warning. --- MagickWand/wandcli.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() -- 2.50.1