From: cristy Date: Tue, 5 Oct 2010 18:18:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8746 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e4015da6d3d7ec122759aa7b5b2913f5c6588f0;p=imagemagick --- diff --git a/magick/option.c b/magick/option.c index 8d30d48ef..8880f137a 100644 --- a/magick/option.c +++ b/magick/option.c @@ -2089,17 +2089,16 @@ MagickExport ssize_t ParseChannelOption(const char *channels) } case ',': { + ssize_t + type; + /* - More channel flags follow shorthand. For example "RGB,sync" - Gather the additional channel flags and merge with shorthand + Gather the additional channel flags and merge with shorthand. */ - ssize_t - more_channel; - more_channel=ParseMagickOption(MagickChannelOptions,MagickTrue, - channels+i+1); - if (more_channel < 0) - return(more_channel); - channel |= more_channel; + type=ParseMagickOption(MagickChannelOptions,MagickTrue,channels+i+1); + if (type < 0) + return(type); + channel|=type; return(channel); } default: