[GRASS-SVN] r39540 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 17 07:02:53 EDT 2009
Author: martinl
Date: 2009-10-17 07:02:52 -0400 (Sat, 17 Oct 2009)
New Revision: 39540
Modified:
grass/trunk/lib/vector/Vlib/field.c
Log:
fix bug in Vect_get_field_by_name()
Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c 2009-10-17 10:31:37 UTC (rev 39539)
+++ grass/trunk/lib/vector/Vlib/field.c 2009-10-17 11:02:52 UTC (rev 39540)
@@ -438,7 +438,7 @@
G_debug(1, "Vect_get_field_by_name(): field = %s", field);
for (i = 0; i < Map->dblnk->n_fields; i++) {
- if (Map->dblnk->field[i].name == field) {
+ if (strcmp(Map->dblnk->field[i].name, field) == 0) {
fi = Vect_get_dblink(Map, i);
break;
}
More information about the grass-commit
mailing list