diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | cmd2.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2009-04-08 kalev + + * cmd2.c: Move aliases/actions back to default group if it was + specified as '*'. + 2009-04-07 jahara * cmd2.c: Fixed setting alias/action groups back to default. @@ -196,7 +196,7 @@ void parse_alias __P1 (char *,str) if( (*np)->group != NULL ) free((*np)->group); - if (*group == '\0') + if ( *group == '\0' || strcmp(group,"*") == 0 ) group = NULL; (*np)->group = my_strdup(group); @@ -576,7 +576,7 @@ void parse_action __P2 (char *,str, int,onprompt) if( (*np)->group != NULL ) free( (*np)->group ); - if (*group == '\0') + if ( *group == '\0' || strcmp(group,"*") == 0 ) group = NULL; (*np) -> group = my_strdup( group ); |