]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 5 Oct 2010 18:18:56 +0000 (18:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 5 Oct 2010 18:18:56 +0000 (18:18 +0000)
magick/option.c

index 8d30d48ef996fc4dcc70273f63751b3b3786d93b..8880f137a11b8d8364098d3414fc542015bbf61b 100644 (file)
@@ -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: