[GRASS-SVN] r73267 - grass/branches/releasebranch_7_6/lib/segment

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 5 01:16:55 PDT 2018


Author: mmetz
Date: 2018-09-05 01:16:55 -0700 (Wed, 05 Sep 2018)
New Revision: 73267

Modified:
   grass/branches/releasebranch_7_6/lib/segment/open.c
Log:
libsegment: do not zero fill, use lseek in Segment_open()

Modified: grass/branches/releasebranch_7_6/lib/segment/open.c
===================================================================
--- grass/branches/releasebranch_7_6/lib/segment/open.c	2018-09-05 05:59:43 UTC (rev 73266)
+++ grass/branches/releasebranch_7_6/lib/segment/open.c	2018-09-05 08:16:55 UTC (rev 73267)
@@ -66,7 +66,7 @@
 	G_warning(_("Unable to create segment file"));
 	return -1;
     }
-    if (0 > (ret = Segment_format(SEG->fd, nrows, ncols, srows,
+    if (0 > (ret = Segment_format_nofill(SEG->fd, nrows, ncols, srows,
 							scols, len))) {
 	close(SEG->fd);
 	unlink(SEG->fname);



More information about the grass-commit mailing list