diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-27 14:42:51 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-27 14:43:00 +0200 |
commit | e9e6664be08910fd0621402c1b2519535c37aef7 (patch) | |
tree | 8c67d1ca624ac0517f3c6bed946e5bfa79953c3b /src/ft_p_lcom.c | |
parent | Removed debug printf (diff) | |
download | 42-minishell-e9e6664be08910fd0621402c1b2519535c37aef7.tar.gz 42-minishell-e9e6664be08910fd0621402c1b2519535c37aef7.tar.bz2 42-minishell-e9e6664be08910fd0621402c1b2519535c37aef7.tar.xz 42-minishell-e9e6664be08910fd0621402c1b2519535c37aef7.tar.zst 42-minishell-e9e6664be08910fd0621402c1b2519535c37aef7.zip |
'msh ~> ;' bug fix
Diffstat (limited to '')
-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))) { |