mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
「🗑️」 clean: cleaned project.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/06/01 14:55:06 by mmoussou #+# #+# */
|
/* Created: 2024/06/01 14:55:06 by mmoussou #+# #+# */
|
||||||
/* Updated: 2024/07/21 17:38:50 by mmoussou ### ########.fr */
|
/* Updated: 2024/07/21 17:57:47 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -54,7 +54,8 @@ int exec_single_cmd(t_cmd *cmd, char **env, t_env *env_t, int pipe_fd[2])
|
|||||||
|
|
||||||
if (!cmd->cmd)
|
if (!cmd->cmd)
|
||||||
{
|
{
|
||||||
ft_free("a", &(cmd->argv));
|
if (cmd->argv)
|
||||||
|
ft_free("a", &(cmd->argv));
|
||||||
get_exit_code(0);
|
get_exit_code(0);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/05/25 15:06:15 by adjoly #+# #+# */
|
/* Created: 2024/05/25 15:06:15 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/07/21 17:51:56 by adjoly ### ########.fr */
|
/* Updated: 2024/07/21 18:01:37 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -27,7 +27,6 @@ char *__redir_filename_cpy(char *redir_s)
|
|||||||
|
|
||||||
tmp = ft_calloc(__get_len_arg(redir_s) + 1, sizeof(char));
|
tmp = ft_calloc(__get_len_arg(redir_s) + 1, sizeof(char));
|
||||||
len = __cpy_arg(tmp, redir_s);
|
len = __cpy_arg(tmp, redir_s);
|
||||||
printf("%zu\n", len);
|
|
||||||
i = 0;
|
i = 0;
|
||||||
j = 0;
|
j = 0;
|
||||||
filename = ft_calloc(len + 1, sizeof(char));
|
filename = ft_calloc(len + 1, sizeof(char));
|
||||||
|
Reference in New Issue
Block a user