summaryrefslogtreecommitdiffstats
path: root/src/b_alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/b_alias.c')
-rw-r--r--src/b_alias.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/b_alias.c b/src/b_alias.c
index daa6e99..5ddc46f 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -99,9 +99,11 @@ uint8_t
ret = 0;
if (argc == 0)
{
+ if (msh->alias == NULL)
+ return (0);
b_print_alias_list(msh);
}
- if (argc > 0)
+ else if (argc > 0)
{
i = 0;
while (args[i] != NULL)