[GRASS-SVN] r74459 - grass/trunk/lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 3 05:19:33 PDT 2019
Author: mmetz
Date: 2019-05-03 05:19:33 -0700 (Fri, 03 May 2019)
New Revision: 74459
Modified:
grass/trunk/lib/raster/close.c
Log:
libraster: sync_and_close() null file
Modified: grass/trunk/lib/raster/close.c
===================================================================
--- grass/trunk/lib/raster/close.c 2019-05-03 08:37:41 UTC (rev 74458)
+++ grass/trunk/lib/raster/close.c 2019-05-03 12:19:33 UTC (rev 74459)
@@ -395,8 +395,11 @@
Rast__write_null_row_ptrs(fd, fcb->null_fd);
}
- if (fcb->null_fd >= 0)
- close(fcb->null_fd);
+ if (fcb->null_fd >= 0) {
+ sync_and_close(fcb->null_fd,
+ (fcb->null_row_ptr ? NULLC_FILE : NULL_FILE),
+ fcb->name);
+ }
fcb->null_fd = -1;
/* create path : full null file name */
More information about the grass-commit
mailing list