Browse Source

Only treat an argument as an option if the character preceding the
first '=' is alphanumeric (update of https://trac.osgeo.org/grass/changeset/32259)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32261 15284696-431f-4ddb-bdfa-cd5b030d7da7

Glynn Clements 17 năm trước cách đây
mục cha
commit
17ee9f1353
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/gis/parser.c

+ 1 - 1
lib/gis/parser.c

@@ -2159,7 +2159,7 @@ static int is_option(const char *string)
 	if (p == string)
 	if (p == string)
 		return 0;
 		return 0;
 	p--;
 	p--;
-	if (*p == ' ' || *p == '\t')
+	if (!strchr("abcdefghijklmnopqrstuvwxyz0123456789", *p))
 		return 0;
 		return 0;
 
 
 	return 1;
 	return 1;