summaryrefslogtreecommitdiffstats
path: root/src/c_ctrls.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-12-15 17:02:34 +0100
committersalad <fmoenne-@student.le-101.fr>2020-12-15 17:02:34 +0100
commit45d3ad71ea69e18b27eb3fa202429e0b73a3826b (patch)
tree38560fb06053c21e0adba60102a225e625f386bd /src/c_ctrls.c
parentstart refactoring shit (diff)
download42-minishell-45d3ad71ea69e18b27eb3fa202429e0b73a3826b.tar.gz
42-minishell-45d3ad71ea69e18b27eb3fa202429e0b73a3826b.tar.bz2
42-minishell-45d3ad71ea69e18b27eb3fa202429e0b73a3826b.tar.xz
42-minishell-45d3ad71ea69e18b27eb3fa202429e0b73a3826b.tar.zst
42-minishell-45d3ad71ea69e18b27eb3fa202429e0b73a3826b.zip
norm and fix ctrl_c to fit c_gnl rewrite
Diffstat (limited to 'src/c_ctrls.c')
-rw-r--r--src/c_ctrls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_ctrls.c b/src/c_ctrls.c
index dcb51de..9431f72 100644
--- a/src/c_ctrls.c
+++ b/src/c_ctrls.c
@@ -44,7 +44,8 @@ char *c_ctrl_c(char **line, char *buf, t_msh *msh)
buf[0] = '\n';
write(1, "\n", 1);
ft_memdel((void**)line);
- return (ft_strdup("\0"));
+ *line = ft_strdup("\0");
+ return (NULL);
}
void c_signal_int(int signo)