summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_init.c')
-rw-r--r--src/c_init.c6
1 files changed, 3 insertions, 3 deletions
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')))