From: cristy Date: Thu, 11 Sep 2014 16:48:44 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2023 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b850466be5328ec19c5e6789054888b4a48aab36;p=imagemagick --- diff --git a/MagickCore/option.c b/MagickCore/option.c index e0682b59e..3da77083c 100644 --- a/MagickCore/option.c +++ b/MagickCore/option.c @@ -2155,7 +2155,7 @@ MagickExport ssize_t GetCommandOptionFlags(const CommandOption option, } if (command_info->mnemonic == (const char *) NULL) return(-1); - if (*token == '!') + if (negate != MagickFalse) option_types=option_types &~ command_info->flags; else option_types=option_types | command_info->flags; @@ -2182,7 +2182,7 @@ MagickExport ssize_t GetCommandOptionFlags(const CommandOption option, } if (option_info[i].mnemonic == (char *) NULL) return(-1); - if (*token == '!') + if (negate != MagickFalse) option_types=option_types &~ option_info[i].flags; else option_types=option_types | option_info[i].flags; @@ -2745,7 +2745,7 @@ MagickExport ssize_t ParseCommandOption(const CommandOption option, } if (command_info->mnemonic == (const char *) NULL) return(-1); - if (*token == '!') + if (negate != MagickFalse) option_types=option_types &~ command_info->type; else option_types=option_types | command_info->type; @@ -2772,7 +2772,7 @@ MagickExport ssize_t ParseCommandOption(const CommandOption option, } if (option_info[i].mnemonic == (char *) NULL) return(-1); - if (*token == '!') + if (negate != MagickFalse) option_types=option_types &~ option_info[i].type; else option_types=option_types | option_info[i].type;