summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-12-11 18:34:08 +0100
committersalad <fmoenne-@student.le-101.fr>2020-12-11 18:34:08 +0100
commit9bf0201d9a9b01d4f46090ac835a40c3eecc79e7 (patch)
tree2307fdcc80abedeb108a2167c0e1d0409f7e504f /src/c_utils.c
parentWIP (diff)
download42-minishell-9bf0201d9a9b01d4f46090ac835a40c3eecc79e7.tar.gz
42-minishell-9bf0201d9a9b01d4f46090ac835a40c3eecc79e7.tar.bz2
42-minishell-9bf0201d9a9b01d4f46090ac835a40c3eecc79e7.tar.xz
42-minishell-9bf0201d9a9b01d4f46090ac835a40c3eecc79e7.tar.zst
42-minishell-9bf0201d9a9b01d4f46090ac835a40c3eecc79e7.zip
something works
Diffstat (limited to 'src/c_utils.c')
-rw-r--r--src/c_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index 73d5a3e..2414638 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -35,7 +35,7 @@ char
if (line != NULL)
{
ret = ft_strdup(line);
- ft_memdel((void*)&line);
+ line[0] = '\0';
}
tcaps->cpos = 0;
tputs(tgetstr("cr", NULL), 1, ft_putchar);