From f04cb58a6698e816699b355da2ce127951020f22 Mon Sep 17 00:00:00 2001 From: gazhonsepaskwa Date: Sat, 15 Feb 2025 09:43:25 +0100 Subject: [PATCH] init of dio var --- includes/minishell.h | 2 +- srcs/parsing/parser.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/minishell.h b/includes/minishell.h index 4fc452f..091f8a9 100644 --- a/includes/minishell.h +++ b/includes/minishell.h @@ -33,7 +33,7 @@ # include "exec/exec.h" # include "exec/expander.h" -# define DEBUG 1 +# define DEBUG 0 # ifndef DIO_PATH # define DIO_PATH "ast.xml" diff --git a/srcs/parsing/parser.c b/srcs/parsing/parser.c index 853a38f..2791661 100644 --- a/srcs/parsing/parser.c +++ b/srcs/parsing/parser.c @@ -51,6 +51,7 @@ t_ast_n *parser(char *input, t_msh *msh) t_ast_n *ast; int dio; + dio = 0; truncate_comment(input); lst = tokenize(input); if (!lst)