[GRASS-SVN] r51750 - grass/branches/releasebranch_6_4/raster/r.lake

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 25 10:15:47 EDT 2012


Author: neteler
Date: 2012-05-25 07:15:46 -0700 (Fri, 25 May 2012)
New Revision: 51750

Modified:
   grass/branches/releasebranch_6_4/raster/r.lake/main.c
Log:
fix segfault with seed map

Modified: grass/branches/releasebranch_6_4/raster/r.lake/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.lake/main.c	2012-05-25 14:07:11 UTC (rev 51749)
+++ grass/branches/releasebranch_6_4/raster/r.lake/main.c	2012-05-25 14:15:46 UTC (rev 51750)
@@ -133,7 +133,7 @@
 {
     char *terrainmap, *seedmap, *lakemap, *mapset;
     int rows, cols, in_terran_fd, out_fd, lake_fd, row, col, pases, pass;
-    int lastcount, curcount, start_col, start_row;
+    int lastcount, curcount, start_col = 0, start_row = 0;
     double east, north, area = 0, volume = 0;
     FCELL **in_terran, **out_water, water_level, max_depth = 0, min_depth = 0;
     FCELL water_window[3][3];



More information about the grass-commit mailing list