fixes
This commit is contained in:
1 parent
3e35d58aa3
commit
a7d2ecc9e4
3 files changed
+10
-5
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user