summaryrefslogtreecommitdiffstats
path: root/src/ft_m_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 22:24:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 22:24:25 +0200
commitfe24a254415b38952eeef8f0ca4e830549360850 (patch)
treef51808f7ed9ccc7840878de4d1c9d5408c6eaa45 /src/ft_m_loop.c
parentWrong address (diff)
download42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.gz
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.bz2
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.xz
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.zst
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.zip
Pretty good start
Diffstat (limited to '')
-rw-r--r--src/ft_m_loop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c
index 557a9b0..4c22009 100644
--- a/src/ft_m_loop.c
+++ b/src/ft_m_loop.c
@@ -24,7 +24,6 @@ int32_t
{
int8_t gnl;
char *line;
- t_lcom *head;
gnl = 1;
while (gnl > 0)
@@ -33,10 +32,9 @@ int32_t
gnl = get_next_line(STDIN_FILENO, &line);
if (line[0] != '\0')
{
- head = msh->lcom;
ft_p_line(line, msh);
ft_memdel((void*)&line);
- ft_e_lcom(head, msh);
+ ft_e_lcom(msh);
/* TODO: memdel lcom - INSTALL VALGRIND */
}
else