redir working

This commit is contained in:
gazhonsepaskwa
2025-02-04 17:29:45 +01:00
parent a9006a671c
commit 272dc2760a
3 changed files with 39 additions and 14 deletions

View File

@@ -60,7 +60,8 @@ void add_to_tab(char ***tab, char *str)
{
*tab = malloc(sizeof(char *) * 2);
}
free(tmp);
if (tmp)
free(tmp);
(*tab)[i] = ft_strdup(str);
(*tab)[i + 1] = NULL;
}