diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-12-18 14:36:31 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-12-18 14:36:31 +0100 |
commit | f6cc429d6152f330de5d4aac36fea9810f9f47de (patch) | |
tree | 061f0cfe49bdd762387f2065ad2f325149e94f3e /src/c_init.c | |
parent | fuck (diff) | |
download | 42-minishell-f6cc429d6152f330de5d4aac36fea9810f9f47de.tar.gz 42-minishell-f6cc429d6152f330de5d4aac36fea9810f9f47de.tar.bz2 42-minishell-f6cc429d6152f330de5d4aac36fea9810f9f47de.tar.xz 42-minishell-f6cc429d6152f330de5d4aac36fea9810f9f47de.tar.zst 42-minishell-f6cc429d6152f330de5d4aac36fea9810f9f47de.zip |
mergethis
Diffstat (limited to 'src/c_init.c')
-rw-r--r-- | src/c_init.c | 6 |
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'))) |