]> granicus.if.org Git - imagemagick/commitdiff
Fixed compiler warning.
authordirk <dirk@git.imagemagick.org>
Sun, 12 Oct 2014 18:39:24 +0000 (18:39 +0000)
committerdirk <dirk@git.imagemagick.org>
Sun, 12 Oct 2014 18:39:24 +0000 (18:39 +0000)
MagickCore/utility.c

index e05d8201840923683f876d06bea790b9f128dd14..06795bc6791b5979aae01140b919dd9a58360f93 100644 (file)
@@ -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]);