summaryrefslogtreecommitdiffstats
path: root/src/c_ctrls.c
diff options
context:
space:
mode:
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)