[GRASS-SVN] r33511 - grass/branches/develbranch_6/raster/wildfire/r.spread

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 23 17:08:36 EDT 2008


Author: neteler
Date: 2008-09-23 17:08:36 -0400 (Tue, 23 Sep 2008)
New Revision: 33511

Modified:
   grass/branches/develbranch_6/raster/wildfire/r.spread/replaceHa.c
Log:
Rainer M Krug <r.m.krug*gmail com>: fix for hanging module

Modified: grass/branches/develbranch_6/raster/wildfire/r.spread/replaceHa.c
===================================================================
--- grass/branches/develbranch_6/raster/wildfire/r.spread/replaceHa.c	2008-09-23 19:54:55 UTC (rev 33510)
+++ grass/branches/develbranch_6/raster/wildfire/r.spread/replaceHa.c	2008-09-23 21:08:36 UTC (rev 33511)
@@ -58,7 +58,7 @@
     G_debug(4, "in replaceHa() before second while. smaller_child=%ld",
 	smaller_child);
 
-    while ( (smaller_child <= *heap_len) &&
+    while ( (smaller_child <= *heap_len) && (smaller_child > 0) &&
 	   (new_min_cost > heap[smaller_child].min_cost)) {
 
 	heap[i].min_cost = heap[smaller_child].min_cost;



More information about the grass-commit mailing list