🔨」 fix: fixed error when infile alone

This commit is contained in:
2024-08-01 17:40:43 +02:00
parent 4081e962c0
commit 4960d5f2ca
2 changed files with 8 additions and 4 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/04 15:00:32 by adjoly #+# #+# */
/* Updated: 2024/07/21 17:44:29 by mmoussou ### ########.fr */
/* Updated: 2024/08/01 17:39:20 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,6 +17,8 @@ t_cmd *split_cmd(char *cmd_av, t_cmd *cmd)
{
char **split;
cmd->argv = NULL;
cmd->cmd = NULL;
split = split_argv(cmd_av);
if (!split)
{