aboutsummaryrefslogtreecommitdiff
path: root/src/repl.c
diff options
context:
space:
mode:
authorChristopher Uhlig2025-01-22 16:50:05 +0100
committerChristopher Uhlig2025-01-22 16:50:05 +0100
commitad5eae00584c6c4a88e873b85645c10c47cd7bf8 (patch)
tree77d00c9f815d26b05594fe75c11e364b3568e3ec /src/repl.c
parentf6e474d27a1398c6d4f2e88c7f2d3797b85217da (diff)
downloadminishell-ad5eae00584c6c4a88e873b85645c10c47cd7bf8.tar.gz
minishell-ad5eae00584c6c4a88e873b85645c10c47cd7bf8.zip
uiuiuiui
Diffstat (limited to 'src/repl.c')
-rw-r--r--src/repl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/repl.c b/src/repl.c
index 2dcd16d..859dde3 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/24 16:07:04 by dkaiser #+# #+# */
-/* Updated: 2025/01/21 21:29:16 by chuhlig ### ########.fr */
+/* Updated: 2025/01/22 15:22:00 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,7 +16,8 @@
void free_repl(char *input, t_node *ast)
{
free(input);
- free_node(ast);
+ if(ast)
+ free_node(ast);
}
void repl(const char *prompt, t_env **env, int *promptflag)