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 55b7232..5ca86da 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -28,11 +28,13 @@ static void
/* char buff[255][255][ARG_MAX]; */
ptr = msh->alias;
+ i = 0;
while (ptr != NULL)
{
- ft_printf("alias %s='%s'\n", ptr->name, ptr->val);
ptr = ptr->next;
+ i++;
}
+ ft_printf("alias %s='%s'\n", ptr->name, ptr->val);
}
static uint8_t