[GRASS-SVN] r51751 - grass/branches/develbranch_6/raster/r.lake
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 25 10:15:57 EDT 2012
Author: neteler
Date: 2012-05-25 07:15:55 -0700 (Fri, 25 May 2012)
New Revision: 51751
Modified:
grass/branches/develbranch_6/raster/r.lake/main.c
Log:
fix segfault with seed map
Modified: grass/branches/develbranch_6/raster/r.lake/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.lake/main.c 2012-05-25 14:15:46 UTC (rev 51750)
+++ grass/branches/develbranch_6/raster/r.lake/main.c 2012-05-25 14:15:55 UTC (rev 51751)
@@ -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