mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2026-12-02 15:21:44 +01:00
「🔨」 fix: fixed error when infile alone
This commit is contained in:
1 parent
4081e962c0
commit
4960d5f2ca
2 files changed
+8
-4
No files matched your search
@@ -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