[GRASS-SVN] r51752 - grass/trunk/raster/r.lake

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 25 10:16:00 EDT 2012


Author: neteler
Date: 2012-05-25 07:16:00 -0700 (Fri, 25 May 2012)
New Revision: 51752

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

Modified: grass/trunk/raster/r.lake/main.c
===================================================================
--- grass/trunk/raster/r.lake/main.c	2012-05-25 14:15:55 UTC (rev 51751)
+++ grass/trunk/raster/r.lake/main.c	2012-05-25 14:16:00 UTC (rev 51752)
@@ -133,7 +133,7 @@
 {
     char *terrainmap, *seedmap, *lakemap;
     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