parse-cmd: Just a forgotten check to be reviewed later.

This commit is contained in:
Jérôme Guélen 2025-04-04 18:39:43 +02:00
parent 76b210e024
commit 807a93fc49
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */
/* Updated: 2025/04/04 18:21:17 by jguelen ### ########.fr */
/* Updated: 2025/04/04 18:38:59 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
@ -69,6 +69,8 @@ t_cmd *minishell_parse(t_minishell *app, char *command_line)
t_cmd *root_cmd;
builder.tokens = minishell_wordsplit(command_line);
if (!builder.tokens)
return (NULL);
root_cmd = minishell_cmds_parse(app, &builder);
if (!root_cmd || builder.tokens)
{