]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32932
authorCristy <urban-warrior@imagemagick.org>
Mon, 30 Oct 2017 22:16:56 +0000 (18:16 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 30 Oct 2017 22:16:56 +0000 (18:16 -0400)
MagickWand/operation.c

index bd3c6c6961566cd197cce6e1260363f746cad953..fbb8dc0bc0ef856146e5cb71288ad19139f17d6c 100644 (file)
@@ -1329,7 +1329,7 @@ WandPrivate void CLISettingOptionInfo(MagickCLI *cli_wand,
         }
       if (LocaleCompare("seed",option+1) == 0)
         {
-          if (IsGeometry(arg1) == MagickFalse)
+          if (IfSetOption && (IsGeometry(arg1) == MagickFalse))
             CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
           SetRandomSecretKey(
                IfSetOption ? (unsigned long) StringToUnsignedLong(arg1)