From 1eb2466dfcbae50fbd8230a90340c34912229e15 Mon Sep 17 00:00:00 2001 From: dirk Date: Sun, 12 Oct 2014 18:39:24 +0000 Subject: [PATCH] Fixed compiler warning. --- MagickCore/utility.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/MagickCore/utility.c b/MagickCore/utility.c index e05d82018..06795bc67 100644 --- a/MagickCore/utility.c +++ b/MagickCore/utility.c @@ -2055,12 +2055,14 @@ MagickExport int SystemCommand(const MagickBooleanType asynchronous, # error No suitable system() method. #endif if (status < 0) - if ((output != (char *) NULL) && (*output != '\0')) - (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, - "FailedToExecuteCommand","`%s' (%s)",command,output); - else - (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, - "FailedToExecuteCommand","`%s' (%d)",command,status); + { + if ((output != (char *) NULL) && (*output != '\0')) + (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, + "FailedToExecuteCommand","`%s' (%s)",command,output); + else + (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, + "FailedToExecuteCommand","`%s' (%d)",command,status); + } sanitize_command=DestroyString(sanitize_command); for (i=0; i < (ssize_t) number_arguments; i++) arguments[i]=DestroyString(arguments[i]); -- 2.50.1