[GRASS-SVN] r50427 - grass/branches/develbranch_6/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 25 01:02:25 EST 2012
Author: hamish
Date: 2012-01-24 22:02:25 -0800 (Tue, 24 Jan 2012)
New Revision: 50427
Modified:
grass/branches/develbranch_6/lib/gis/closecell.c
Log:
rm double close(fd)
Modified: grass/branches/develbranch_6/lib/gis/closecell.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/closecell.c 2012-01-24 23:18:20 UTC (rev 50426)
+++ grass/branches/develbranch_6/lib/gis/closecell.c 2012-01-25 06:02:25 UTC (rev 50427)
@@ -284,13 +284,10 @@
G_warning(_("Unable to delete the %s file"), FORMAT_FILE);
strcpy(CELL_DIR, "cell");
-
- if (close(fd) != 0) /* doesn't this happen again in a few lines? */
- G_warning(_("Unable to close file"));
}
- } /* ok */
- /* NOW CLOSE THE FILE DESCRIPTOR */
+ } /* if(ok) */
+ /* NOW CLOSE THE FILE DESCRIPTOR */
if (close(fd) != 0)
G_warning(_("Unable to close file"));
More information about the grass-commit
mailing list