This commit is contained in:
gazhonsepaskwa
2025-02-12 12:10:17 +01:00
parent 3e35d58aa3
commit a7d2ecc9e4
3 changed files with 10 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
int execute_command(t_ast_n *node)
{
if (!node->cmd)
if (!node || (node->state == _CMD && node->cmd == NULL))
return (0);
if (node->state == _CMD)
handle_redir(node);