[GRASS-SVN] r32263 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 24 11:16:43 EDT 2008


Author: martinl
Date: 2008-07-24 11:16:43 -0400 (Thu, 24 Jul 2008)
New Revision: 32263

Modified:
   grass/branches/develbranch_6/lib/gis/parser.c
Log:
glynn: Only treat an argument as an option if the character preceding the first '=' is alphanumeric (update of r32259; merged from trunk, r32261)

Modified: grass/branches/develbranch_6/lib/gis/parser.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/parser.c	2008-07-24 15:15:27 UTC (rev 32262)
+++ grass/branches/develbranch_6/lib/gis/parser.c	2008-07-24 15:16:43 UTC (rev 32263)
@@ -2159,7 +2159,7 @@
 	if (p == string)
 		return 0;
 	p--;
-	if (*p == ' ' || *p == '\t')
+	if (!strchr("abcdefghijklmnopqrstuvwxyz0123456789", *p))
 		return 0;
 
 	return 1;



More information about the grass-commit mailing list