diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-12-11 18:34:08 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-12-11 18:34:08 +0100 |
commit | 9bf0201d9a9b01d4f46090ac835a40c3eecc79e7 (patch) | |
tree | 2307fdcc80abedeb108a2167c0e1d0409f7e504f /src/c_utils.c | |
parent | WIP (diff) | |
download | 42-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 '')
-rw-r--r-- | src/c_utils.c | 2 |
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); |