mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
「🔨」 fix: fixed error when infile alone
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user