diff --git a/.nfs00000000098c82b80000065f b/.nfs00000000098c82b80000065f deleted file mode 100755 index baed54c..0000000 Binary files a/.nfs00000000098c82b80000065f and /dev/null differ diff --git a/Makefile b/Makefile index c97bdba..e8aba2a 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ NAME = minishell CC = clang -CFLAGS = -Werror -Wextra -g +CFLAGS = -Werror -Wextra -Wall -g LIBS = libftx/libftx.a diff --git a/execution.c b/execution.c index bf4e98b..343a2ea 100644 --- a/execution.c +++ b/execution.c @@ -77,6 +77,7 @@ static int ft_executor(t_data *data, t_cmd *cmd) int return_value; char **tab; + return_value = -1; if (cmd->fd_in == -1 || cmd->fd_out == -1) return (1); pid = fork(); diff --git a/main.c b/main.c index 9b0ce18..f1bea15 100644 --- a/main.c +++ b/main.c @@ -69,8 +69,6 @@ static int ft_minishell(t_data *data, char *line) close(outfile); if (infile > 2) close(infile); - ft_lstclear(cmds, ft_cmddel); - free(cmds); free(line_clean); return (1); }