[gimp] libgimpwidgets: Don't use light[3] and dark[3] as they're both uninitialized



commit a0ff9810412ef7e9ee9f9d0325adf93601270f75
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Apr 21 14:22:13 2011 +0530

    libgimpwidgets: Don't use light[3] and dark[3] as they're both uninitialized
    
    This also removes the bogus double assignment to l[2].

 libgimpwidgets/gimpcolorscale.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libgimpwidgets/gimpcolorscale.c b/libgimpwidgets/gimpcolorscale.c
index 1999af9..8808abc 100644
--- a/libgimpwidgets/gimpcolorscale.c
+++ b/libgimpwidgets/gimpcolorscale.c
@@ -810,14 +810,12 @@ gimp_color_scale_render_alpha (GimpColorScale *scale)
                     l[0] = light[0];
                     l[1] = light[1];
                     l[2] = light[2];
-                    l[2] = light[3];
                   }
                 else
                   {
                     l[0] = dark[0];
                     l[1] = dark[1];
                     l[2] = dark[2];
-                    l[3] = dark[3];
                   }
               }
           }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]