From f6cc429d6152f330de5d4aac36fea9810f9f47de Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 18 Dec 2020 14:36:31 +0100 Subject: mergethis --- src/c_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/c_init.c') diff --git a/src/c_init.c b/src/c_init.c index 1659f3f..c3c6421 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -157,9 +157,9 @@ short msh->sig = 0; tcaps.plen = (unsigned int)m_plen(msh->ps[psx - 1]); *line = NULL; - if (*line == NULL) - if (!(*line = ft_calloc(sizeof(char), 1))) - return (-1); + if (!(*line = ft_calloc(sizeof(char), 1))) + return (-1); + ft_printf("[%p]\n\r", (void*)*line); if (!(c_get_win_size(&tcaps.ws))) return (-1); while (!(ft_strchr(nread, '\n'))) -- cgit v1.2.3