[GRASS-SVN] r39324 - grass-addons/raster/r.stream.order

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 29 06:42:49 EDT 2009


Author: jarekj71
Date: 2009-09-29 06:42:47 -0400 (Tue, 29 Sep 2009)
New Revision: 39324

Modified:
   grass-addons/raster/r.stream.order/io.c
Log:
removing bug

Modified: grass-addons/raster/r.stream.order/io.c
===================================================================
--- grass-addons/raster/r.stream.order/io.c	2009-09-29 08:37:06 UTC (rev 39323)
+++ grass-addons/raster/r.stream.order/io.c	2009-09-29 10:42:47 UTC (rev 39324)
@@ -118,11 +118,11 @@
 {
 	char *cur_mapset;
 	CELL c_min, c_max;
-	struct Range *stream_range;
-	G_init_range(stream_range);
+	struct Range stream_range;
+	G_init_range(&stream_range);
 	cur_mapset = G_find_cell2(in_streams, "");
-	G_read_range(in_streams,cur_mapset,stream_range);
-	G_get_range_min_max(stream_range, &c_min, &c_max);
+	G_read_range(in_streams,cur_mapset,&stream_range);
+	G_get_range_min_max(&stream_range, &c_min, &c_max);
 	return c_max;
 }
 



More information about the grass-commit mailing list