[gimp] contrast-retinex: Delete redundant assignment and move variable to local block



commit 030695b8d01cebecaa54453bac93663b5e06a9ea
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Oct 6 19:39:59 2011 +0530

    contrast-retinex: Delete redundant assignment and move variable to local block

 plug-ins/common/contrast-retinex.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/contrast-retinex.c b/plug-ins/common/contrast-retinex.c
index 52d20fa..7cc563f 100644
--- a/plug-ins/common/contrast-retinex.c
+++ b/plug-ins/common/contrast-retinex.c
@@ -613,7 +613,6 @@ MSRCR (guchar *src, gint width, gint height, gint bytes, gboolean preview_mode)
   gint          scale,row,col;
   gint          i,j;
   gint          size;
-  gint          pos;
   gint          channel;
   guchar       *psrc = NULL;            /* backup pointer for src buffer */
   gfloat       *dst  = NULL;            /* float buffer for algorithm */
@@ -683,9 +682,10 @@ MSRCR (guchar *src, gint width, gint height, gint bytes, gboolean preview_mode)
     The recursive filtering algorithm needs different coefficients according
     to the selected scale (~ = standard deviation of Gaussian).
    */
-  pos = 0;
   for (channel = 0; channel < 3; channel++)
     {
+      gint pos;
+
       for (i = 0, pos = channel; i < channelsize ; i++, pos += bytes)
          {
             /* 0-255 => 1-256 */



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