[GRASS-SVN] r51415 - grass/trunk/vector/v.external
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 13 09:27:42 EDT 2012
Author: martinl
Date: 2012-04-13 06:27:42 -0700 (Fri, 13 Apr 2012)
New Revision: 51415
Modified:
grass/trunk/vector/v.external/main.c
Log:
v.external: no need to explicitly delete vector map (already done by io handler)
Modified: grass/trunk/vector/v.external/main.c
===================================================================
--- grass/trunk/vector/v.external/main.c 2012-04-13 13:23:23 UTC (rev 51414)
+++ grass/trunk/vector/v.external/main.c 2012-04-13 13:27:42 UTC (rev 51415)
@@ -155,7 +155,6 @@
GV_DIRECTORY, output);
G_debug(2, "Delete '%s'", buf);
if (unlink(buf) == -1) {
- Vect_delete(output);
G_fatal_error(_("Unable to delete '%s'"), buf);
}
@@ -163,7 +162,6 @@
sprintf(buf, "%s/%s", GV_DIRECTORY, output);
fd = G_fopen_new(buf, GV_FRMT_ELEMENT);
if (fd == NULL) {
- Vect_delete(output);
G_fatal_error("Unable to create file '%s'", buf);
}
More information about the grass-commit
mailing list