fix des trucs

This commit is contained in:
2024-05-07 17:43:00 +02:00
parent 01496f0587
commit e986d8692b
5 changed files with 20 additions and 9 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:19:26 by marde-vr #+# #+# */
/* Updated: 2024/05/06 16:17:32 by tomoron ### ########.fr */
/* Updated: 2024/05/07 17:07:16 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -79,7 +79,7 @@ void close_all_pipes(t_msh *msh)
int i;
i = 0;
while (msh->fds[i])
while (msh->fds && msh->fds[i])
{
close_pipe_fds(msh, i);
i++;