small fixes

This commit is contained in:
Loic Deridder
2025-02-18 13:52:56 +01:00
parent f3bf429c07
commit 28b4b0d3bc
5 changed files with 11 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
/* ************************************************************************** */
#include "../../includes/minishell.h"
#include <stdlib.h>
int count_cmds(t_ast_n **pline)
{
@@ -94,6 +95,7 @@ int exec_scmd(t_ast_n *node)
pid_t pid;
int status;
status = 0;
if (!node->cmd)
return (0);
else if (is_builtin(node->cmd))