[gimp/goat-invasion: 178/526] app: fix initialization of variable in gimp_layer_get_opacity_at



commit 9069e4b6d2bf99defcb5693959d01caadc24f922
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Wed Mar 21 01:06:05 2012 +0000

    app: fix initialization of variable in gimp_layer_get_opacity_at

 app/core/gimplayer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index af62dc2..10623a8 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -973,7 +973,7 @@ gimp_layer_get_opacity_at (GimpPickable *pickable,
                            gint          y)
 {
   GimpLayer *layer = GIMP_LAYER (pickable);
-  guchar     value;
+  guchar     value = 0;
 
   if (x >= 0 && x < gimp_item_get_width  (GIMP_ITEM (layer)) &&
       y >= 0 && y < gimp_item_get_height (GIMP_ITEM (layer)) &&



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