parentheses

This commit is contained in:
2024-04-23 16:03:01 +02:00
parent 3cf92d0495
commit 7a032b41b1
7 changed files with 94 additions and 28 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:22:15 by marde-vr #+# #+# */
/* Updated: 2024/04/22 19:32:11 by marde-vr ### ########.fr */
/* Updated: 2024/04/23 13:46:25 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -21,7 +21,7 @@ int get_args_count(t_token *cmds)
cur_cmd = cmds;
if (cur_cmd)
count++;
while (cur_cmd->next)
while (cur_cmd && cur_cmd->next)
{
cur_cmd = cur_cmd->next;
count++;