summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-12-07 15:36:45 +0100
committersalad <fmoenne-@student.le-101.fr>2020-12-07 15:36:45 +0100
commit3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60 (patch)
tree3a65ec384f731b5e5621494f21bb2417986639f1 /src/c_utils.c
parentgnu c compiler compatible (diff)
download42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.gz
42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.bz2
42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.xz
42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.zst
42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.zip
WIP
Diffstat (limited to 'src/c_utils.c')
-rw-r--r--src/c_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index fa2eaaf..73d5a3e 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -35,7 +35,7 @@ char
if (line != NULL)
{
ret = ft_strdup(line);
- line[0] = '\0';
+ ft_memdel((void*)&line);
}
tcaps->cpos = 0;
tputs(tgetstr("cr", NULL), 1, ft_putchar);
@@ -44,6 +44,7 @@ char
{
write(1, "\n", 1);
}
+ /* ft_printf("[%s][%s]\n", ret, line); */
return (ret);
}