aboutsummaryrefslogtreecommitdiffstats
path: root/cmd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.c')
-rw-r--r--cmd2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.c b/cmd2.c
index 0c00202..41a26eb 100644
--- a/cmd2.c
+++ b/cmd2.c
@@ -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 );