Browse Source

Use match_option()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37825 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 years ago
parent
commit
8277af8188
1 changed files with 8 additions and 1 deletions
  1. 8 1
      lib/gis/parser.c

+ 8 - 1
lib/gis/parser.c

@@ -2016,8 +2016,15 @@ static int set_option(const char *string)
     got_one = 0;
     key_len = strlen(the_key);
     for (at_opt = &st->first_option; at_opt != NULL; at_opt = at_opt->next_opt) {
-	if (at_opt->key == NULL || strncmp(the_key, at_opt->key, key_len))
+	if (!at_opt->key)
 	    continue;
+#if 1
+	if (!match_option(the_key, at_opt->key))
+	    continue;
+#else
+	if (strncmp(the_key, at_opt->key, key_len))
+	    continue;
+#endif
 
 	got_one++;
 	opt = at_opt;