[GRASS-SVN] r29426 - grass/trunk/imagery/i.ortho.photo/photo.rectify

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 12 16:52:31 EST 2007


Author: bdouglas
Date: 2007-12-12 16:52:30 -0500 (Wed, 12 Dec 2007)
New Revision: 29426

Modified:
   grass/trunk/imagery/i.ortho.photo/photo.rectify/write.c
Log:
Fix for temp file write fd

Modified: grass/trunk/imagery/i.ortho.photo/photo.rectify/write.c
===================================================================
--- grass/trunk/imagery/i.ortho.photo/photo.rectify/write.c	2007-12-12 15:35:18 UTC (rev 29425)
+++ grass/trunk/imagery/i.ortho.photo/photo.rectify/write.c	2007-12-12 21:52:30 UTC (rev 29426)
@@ -6,6 +6,7 @@
 #include <errno.h>
 #include "global.h"
 
+
 int write_matrix (int row, int col)
 {
     int n;
@@ -34,6 +35,7 @@
     return 0;
 }
 
+
 int write_map(char *name)
 {
    int fd, row;
@@ -60,7 +62,9 @@
           unlink(temp_name);
        }
    }
+
    close(temp_fd);
+   temp_fd = 0;
    unlink(temp_name);
    G_close_cell(fd);
 



More information about the grass-commit mailing list