From 95a16d2d88c8628ab0ae76f3ae04dfebee566950 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 27 Aug 2020 19:13:28 +0200 Subject: Fising tok_lst_new uninitialized next, Added tok_lst_debug, Fixing parse_cmd --- src/preprocess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/preprocess.c') diff --git a/src/preprocess.c b/src/preprocess.c index 2e477d0..f4eb104 100644 --- a/src/preprocess.c +++ b/src/preprocess.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/03 08:58:49 by charles #+# #+# */ -/* Updated: 2020/08/27 17:33:55 by charles ### ########.fr */ +/* Updated: 2020/08/27 20:43:22 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,7 +48,7 @@ t_tok_lst *st_stick_tokens(t_tok_lst *tokens) while (curr != NULL) { // curr->next shouldn't be null - if (curr->tag & TAG_STICK) + if (curr->tag & TAG_STICK && curr->next != NULL) { curr->content = ft_strjoinf_fst(curr->content, curr->next->content); t_tok_lst *tmp = curr->next->next; -- cgit