[GRASS-SVN] r59645 - grass/trunk/lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 8 12:41:28 PDT 2014
Author: mmetz
Date: 2014-04-08 12:41:28 -0700 (Tue, 08 Apr 2014)
New Revision: 59645
Modified:
grass/trunk/lib/raster/close.c
Log:
rasterlib: add comments
Modified: grass/trunk/lib/raster/close.c
===================================================================
--- grass/trunk/lib/raster/close.c 2014-04-08 17:43:16 UTC (rev 59644)
+++ grass/trunk/lib/raster/close.c 2014-04-08 19:41:28 UTC (rev 59645)
@@ -374,13 +374,14 @@
fcb->null_temp_name, path);
stat = -1;
}
+ /* if rename() was successful what is left to remove() ? */
else {
remove(fcb->null_temp_name);
}
}
else {
remove(fcb->null_temp_name);
- remove(path);
+ remove(path); /* again ? */
} /* null_cur_row > 0 */
if (fcb->open_mode == OPEN_NEW_COMPRESSED) { /* auto compression */
@@ -440,6 +441,7 @@
fcb->temp_name, path);
stat = -1;
}
+ /* if rename() was successful what is left to remove() ? */
else {
remove(fcb->temp_name);
}
More information about the grass-commit
mailing list