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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 3 06:21:24 PDT 2012


Author: mmetz
Date: 2012-06-03 06:21:23 -0700 (Sun, 03 Jun 2012)
New Revision: 51952

Modified:
   grass/trunk/lib/segment/open.c
Log:
segment lib bugfix

Modified: grass/trunk/lib/segment/open.c
===================================================================
--- grass/trunk/lib/segment/open.c	2012-06-03 13:13:23 UTC (rev 51951)
+++ grass/trunk/lib/segment/open.c	2012-06-03 13:21:23 UTC (rev 51952)
@@ -88,7 +88,7 @@
 	G_warning(_("Unable to re-open segment file"));
 	return -4;
     }
-    if (0 > (ret = segment_init(SEG, fd, nseg))) {
+    if (0 > (ret = segment_init(SEG, SEG->fd, nseg))) {
 	close(SEG->fd);
 	unlink(SEG->fname);
 	if (ret == -1) {



More information about the grass-commit mailing list