From 1b768732c54cfcae42d851009870362d322bcfef Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 2 Aug 2024 17:03:49 +0200 Subject: [PATCH] Fix crashes on empty input --- src/parsing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsing.c b/src/parsing.c index c228d53..06f93f3 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/03 15:58:55 by ljiriste #+# #+# */ -/* Updated: 2024/08/02 14:16:59 by ljiriste ### ########.fr */ +/* Updated: 2024/08/02 17:03:23 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,5 +23,5 @@ int parse(t_vec *tokens, t_tree **parse_tree) ft_parsing_table_load_str(&table, g_str_table, g_str_rules); *parse_tree = ft_parse(tokens, &table); ft_parsing_table_free(&table); - return (parse_tree == NULL); + return (*parse_tree == NULL); } -- 2.30.2