diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-04-27 18:11:59 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-04-27 18:11:59 +0200 |
commit | f3c766105a7dc8a3f1791374c41542ea833c53ce (patch) | |
tree | ba1ecd86edf60952a85528c2e4184c7ac9ed226e /src/ft_p_lcom.c | |
parent | fecho full buffered, quotes bav (diff) | |
parent | Finished and normed type (diff) | |
download | 42-minishell-f3c766105a7dc8a3f1791374c41542ea833c53ce.tar.gz 42-minishell-f3c766105a7dc8a3f1791374c41542ea833c53ce.tar.bz2 42-minishell-f3c766105a7dc8a3f1791374c41542ea833c53ce.tar.xz 42-minishell-f3c766105a7dc8a3f1791374c41542ea833c53ce.tar.zst 42-minishell-f3c766105a7dc8a3f1791374c41542ea833c53ce.zip |
merge master into fmoenne
Diffstat (limited to 'src/ft_p_lcom.c')
-rw-r--r-- | src/ft_p_lcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_p_lcom.c b/src/ft_p_lcom.c index 9a7a1b8..9a678e6 100644 --- a/src/ft_p_lcom.c +++ b/src/ft_p_lcom.c @@ -132,7 +132,7 @@ int8_t i = 0; if (!(words = ft_split(line, ';'))) return (-1); - while (i <= count) + while (i <= count && words[i]) { if (!(link = ft_lcom_new(words[i], msh))) { |