[GRASS-SVN] r60915 - grass/trunk/raster/r.spread

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 21 18:46:18 PDT 2014


Author: annakrat
Date: 2014-06-21 18:46:17 -0700 (Sat, 21 Jun 2014)
New Revision: 60915

Modified:
   grass/trunk/raster/r.spread/spread.c
Log:
r.spread: initialize uninitialized value

Modified: grass/trunk/raster/r.spread/spread.c
===================================================================
--- grass/trunk/raster/r.spread/spread.c	2014-06-21 17:35:41 UTC (rev 60914)
+++ grass/trunk/raster/r.spread/spread.c	2014-06-22 01:46:17 UTC (rev 60915)
@@ -68,6 +68,9 @@
     struct cell_ptrHa *to_cell, *old_to_cell;
     struct costHa *pres_cell;
 
+    /* initialize using arbitrary value, this value is never used except for debug */
+    min_cost = 0;
+
     ncells = nrows * ncols;
     G_message
 	("Finding spread time - number of cells visited in percentage ...  %3d%%",



More information about the grass-commit mailing list