[GRASS-SVN] r73268 - grass/trunk/lib/segment

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 5 01:17:51 PDT 2018


Author: mmetz
Date: 2018-09-05 01:17:51 -0700 (Wed, 05 Sep 2018)
New Revision: 73268

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

Modified: grass/trunk/lib/segment/open.c
===================================================================
--- grass/trunk/lib/segment/open.c	2018-09-05 08:16:55 UTC (rev 73267)
+++ grass/trunk/lib/segment/open.c	2018-09-05 08:17:51 UTC (rev 73268)
@@ -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