summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-12-15 14:17:51 +0100
committersalad <fmoenne-@student.le-101.fr>2020-12-15 14:17:51 +0100
commit93f307f99188bdba8dc783abb8627d0abb5b871d (patch)
treef0382b1338aec133f76f7d6e5bd84db3ef0d13f3 /src/c_utils.c
parentonto something (diff)
download42-minishell-93f307f99188bdba8dc783abb8627d0abb5b871d.tar.gz
42-minishell-93f307f99188bdba8dc783abb8627d0abb5b871d.tar.bz2
42-minishell-93f307f99188bdba8dc783abb8627d0abb5b871d.tar.xz
42-minishell-93f307f99188bdba8dc783abb8627d0abb5b871d.tar.zst
42-minishell-93f307f99188bdba8dc783abb8627d0abb5b871d.zip
noleak ????????????????
Diffstat (limited to 'src/c_utils.c')
-rw-r--r--src/c_utils.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index 048b845..f5e66fe 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -32,11 +32,12 @@ char
write(1, "\n", 1);
tputs(tgetstr("cr", NULL), 1, ft_putchar);
c_set_term_raw(0);
- if (line != NULL)
- {
- ret = ft_strdup(line);
- *line = '\0';
- }
+ (void)line;
+ /* if (line != NULL) */
+ /* { */
+ /* ret = ft_strdup(line); */
+ /* *line = '\0'; */
+ /* } */
tcaps->cpos = 0;
tputs(tgetstr("cr", NULL), 1, ft_putchar);
if (i < tcaps->nlines && tcaps->nlines != 1)