Sfoglia il codice sorgente

segment lib bugfix

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51952 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 anni fa
parent
commit
2d6fe880d7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/segment/open.c

+ 1 - 1
lib/segment/open.c

@@ -88,7 +88,7 @@ segment_open(SEGMENT *SEG, char *fname, off_t nrows, off_t ncols,
 	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) {