From e9e6664be08910fd0621402c1b2519535c37aef7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 27 Apr 2020 14:42:51 +0200 Subject: 'msh ~> ;' bug fix --- src/ft_p_lcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_p_lcom.c') 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))) { -- cgit v1.2.3