[GRASS-SVN] r52795 - grass/trunk/vector/v.category

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 21 00:46:07 PDT 2012


Author: mmetz
Date: 2012-08-21 00:46:07 -0700 (Tue, 21 Aug 2012)
New Revision: 52795

Modified:
   grass/trunk/vector/v.category/main.c
Log:
v.category: safer return type check

Modified: grass/trunk/vector/v.category/main.c
===================================================================
--- grass/trunk/vector/v.category/main.c	2012-08-20 18:30:58 UTC (rev 52794)
+++ grass/trunk/vector/v.category/main.c	2012-08-21 07:46:07 UTC (rev 52795)
@@ -374,7 +374,7 @@
 				 (Clist &&
 				  Vect_cat_in_cat_list(id, Clist) == TRUE))) {
 		ret = Vect_field_cat_del(Cats, fields[0], cat);
-		if (ret == 1) {
+		if (ret > 0) {
 		    nmodified++;
 		}
 	    }



More information about the grass-commit mailing list