summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-07 12:49:35 +0000
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-07 12:49:35 +0000
commit1eb4849cefbbb6b2053da0da59b1cc750e78f198 (patch)
tree64ebe3b0324de1ac67abee13b78e940bc4f35b7a
parent7ae207c710b2d14269be4d881a8cccd9da24269d (diff)
downloadnavit-svn-1eb4849cefbbb6b2053da0da59b1cc750e78f198.tar.gz
Add:core:Added possibility to create universal command handler
with name of '*' git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/navit@3138 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index fe3fbbd8..bfaa71d9 100644
--- a/command.c
+++ b/command.c
@@ -877,7 +877,7 @@ command_table_call(struct command_table *table, int count, void *data, char *com
{
int i;
for (i = 0 ; i < count ; i++) {
- if (!strcmp(command,table->command)) {
+ if (!strcmp(command,table->command) || !strcmp("*",table->command)) {
if (valid)
*valid=1;
table->func(data, command, in, out);