[GRASS-SVN] r29617 - grass/branches/releasebranch_6_3/raster/r.le/r.le.setup

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 8 08:53:43 EST 2008


Author: neteler
Date: 2008-01-08 08:53:43 -0500 (Tue, 08 Jan 2008)
New Revision: 29617

Modified:
   grass/branches/releasebranch_6_3/raster/r.le/r.le.setup/sample.c
Log:
u_? vars were used uninitialized if radius was >100 (merge from HEAD)

Modified: grass/branches/releasebranch_6_3/raster/r.le/r.le.setup/sample.c
===================================================================
--- grass/branches/releasebranch_6_3/raster/r.le/r.le.setup/sample.c	2008-01-08 13:51:49 UTC (rev 29616)
+++ grass/branches/releasebranch_6_3/raster/r.le/r.le.setup/sample.c	2008-01-08 13:53:43 UTC (rev 29617)
@@ -312,11 +312,11 @@
               if (!G_yes("\n       radius (> 100 pixels)?   ",1))
                  goto getradius;
            }
-           else {
-              ratio = 1.0;
-              u_w = (int)(2 * radius);
-              u_l = (int)(2 * radius);
-           }
+
+	   ratio = 1.0;
+	   u_w = (int)(2 * radius);
+	   u_l = (int)(2 * radius);
+
 	   if (fmask > 0) {
 	      count = 0;
 	      row_buf = G_allocate_raster_buf(CELL_TYPE);



More information about the grass-commit mailing list