Procházet zdrojové kódy

r.spread: initialize uninitialized value

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60915 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová před 11 roky
rodič
revize
20625c2ff5
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      raster/r.spread/spread.c

+ 3 - 0
raster/r.spread/spread.c

@@ -68,6 +68,9 @@ void spread(void)
     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%%",