[GRASS-SVN] r29503 - grass/trunk/raster/r.le/r.le.setup

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 25 17:53:54 EST 2007


Author: hamish
Date: 2007-12-25 17:53:53 -0500 (Tue, 25 Dec 2007)
New Revision: 29503

Modified:
   grass/trunk/raster/r.le/r.le.setup/sample.c
Log:
u_? vars were used uninitialized if radius was >100


Modified: grass/trunk/raster/r.le/r.le.setup/sample.c
===================================================================
--- grass/trunk/raster/r.le/r.le.setup/sample.c	2007-12-25 19:33:10 UTC (rev 29502)
+++ grass/trunk/raster/r.le/r.le.setup/sample.c	2007-12-25 22:53:53 UTC (rev 29503)
@@ -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