fix: Makefile bon ok c ma faute j;avais oublié un flag comme un bozo

This commit is contained in:
Camille Chauvet 2023-03-08 15:02:31 +01:00
parent 876c75bb92
commit 15c95b45b1
4 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -7,7 +7,7 @@ NAME = minishell
CC = clang CC = clang
CFLAGS = -Werror -Wextra -g CFLAGS = -Werror -Wextra -Wall -g
LIBS = libftx/libftx.a LIBS = libftx/libftx.a

View File

@ -77,6 +77,7 @@ static int ft_executor(t_data *data, t_cmd *cmd)
int return_value; int return_value;
char **tab; char **tab;
return_value = -1;
if (cmd->fd_in == -1 || cmd->fd_out == -1) if (cmd->fd_in == -1 || cmd->fd_out == -1)
return (1); return (1);
pid = fork(); pid = fork();

2
main.c
View File

@ -69,8 +69,6 @@ static int ft_minishell(t_data *data, char *line)
close(outfile); close(outfile);
if (infile > 2) if (infile > 2)
close(infile); close(infile);
ft_lstclear(cmds, ft_cmddel);
free(cmds);
free(line_clean); free(line_clean);
return (1); return (1);
} }