[GRASS-SVN] r39901 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 6 03:17:59 EST 2009
Author: martinl
Date: 2009-12-06 03:17:58 -0500 (Sun, 06 Dec 2009)
New Revision: 39901
Modified:
grass/trunk/lib/vector/Vlib/header.c
Log:
libvect: fix bug in Vect_get_full_name() - OGR direct
Modified: grass/trunk/lib/vector/Vlib/header.c
===================================================================
--- grass/trunk/lib/vector/Vlib/header.c 2009-12-06 07:27:23 UTC (rev 39900)
+++ grass/trunk/lib/vector/Vlib/header.c 2009-12-06 08:17:58 UTC (rev 39901)
@@ -227,7 +227,9 @@
{
char *ptr;
- if (Map->format == GV_FORMAT_OGR_DIRECT) {
+ if (Map->format == GV_FORMAT_OGR_DIRECT &&
+ Map->fInfo.ogr.dsn &&
+ Map->fInfo.ogr.layer_name) {
ptr = (char *) G_malloc(strlen(Map->fInfo.ogr.layer_name) +
strlen(Map->fInfo.ogr.dsn) + 2);
sprintf(ptr, "%s@%s", Map->fInfo.ogr.layer_name,
More information about the grass-commit
mailing list