[GRASS-SVN] r68241 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 10 05:02:32 PDT 2016


Author: hcho
Date: 2016-04-10 05:02:32 -0700 (Sun, 10 Apr 2016)
New Revision: 68241

Modified:
   grass/trunk/vector/v.to.db/main.c
Log:
v.to.db: Remove duplicate calls

Modified: grass/trunk/vector/v.to.db/main.c
===================================================================
--- grass/trunk/vector/v.to.db/main.c	2016-04-10 11:44:28 UTC (rev 68240)
+++ grass/trunk/vector/v.to.db/main.c	2016-04-10 12:02:32 UTC (rev 68241)
@@ -70,7 +70,7 @@
     /* allocate array for values */
     /* (+ 1 is for cat -1 (no category) reported at the end ) */
     findex = Vect_cidx_get_field_index(&Map, options.field);
-    if (Vect_cidx_get_field_index(&Map, options.field) > -1) {
+    if (findex > -1) {
 	n = Vect_cidx_get_num_unique_cats_by_index(&Map, findex);
     }
     else {



More information about the grass-commit mailing list