[GRASS-SVN] r39536 - grass/trunk/vector/v.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 17 04:35:12 EDT 2009
Author: martinl
Date: 2009-10-17 04:35:11 -0400 (Sat, 17 Oct 2009)
New Revision: 39536
Modified:
grass/trunk/vector/v.info/main.c
Log:
v.info: close vector map if Vect_open_old_head2() opens map on level < 2
Modified: grass/trunk/vector/v.info/main.c
===================================================================
--- grass/trunk/vector/v.info/main.c 2009-10-17 03:32:12 UTC (rev 39535)
+++ grass/trunk/vector/v.info/main.c 2009-10-17 08:35:11 UTC (rev 39536)
@@ -56,6 +56,7 @@
if (Vect_open_old_head2(&Map, input_opt, "", field_opt) < 2) {
G_warning(_("Unable to open vector map <%s> on level 2"),
Vect_get_full_name(&Map));
+ Vect_close(&Map);
level1_flag = 1;
}
}
More information about the grass-commit
mailing list