fix: args have now a env var replacement ex: 0 -> 0

This commit is contained in:
Camille Chauvet
2023-03-10 13:40:20 +01:00
parent 087a96e54b
commit 69fc4c573a
5 changed files with 2 additions and 10 deletions

View File

@ -31,7 +31,7 @@ int ft_args_parse(t_data *data, char *cmd_str, t_cmd *cmd)
if (tab == NULL)
return (1);
i = 0;
while (tab[i] == NULL)
while (tab[i] != NULL)
{
str = ft_env_filler(data, tab[i]);
if (str == NULL)