[GRASS-SVN] r39894 - grass/trunk/raster/r.watershed/seg

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 4 05:35:55 EST 2009


Author: mmetz
Date: 2009-12-04 05:35:54 -0500 (Fri, 04 Dec 2009)
New Revision: 39894

Modified:
   grass/trunk/raster/r.watershed/seg/close_maps.c
   grass/trunk/raster/r.watershed/seg/close_maps2.c
Log:
always close all segment files

Modified: grass/trunk/raster/r.watershed/seg/close_maps.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/close_maps.c	2009-12-04 10:33:30 UTC (rev 39893)
+++ grass/trunk/raster/r.watershed/seg/close_maps.c	2009-12-04 10:35:54 UTC (rev 39894)
@@ -15,6 +15,7 @@
     WAT_ALT wa;
 
     /* bseg_close(&swale); */
+    bseg_close(&bitflags);
     cseg_close(&alt);
     if (wat_flag) {
 	G_message(_("Closing accumulation map"));

Modified: grass/trunk/raster/r.watershed/seg/close_maps2.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/close_maps2.c	2009-12-04 10:33:30 UTC (rev 39893)
+++ grass/trunk/raster/r.watershed/seg/close_maps2.c	2009-12-04 10:35:54 UTC (rev 39894)
@@ -120,8 +120,6 @@
     if (arm_flag)
 	fclose(fp);
 
-    bseg_close(&bitflags);
-
     close_maps();
 
     return 0;



More information about the grass-commit mailing list