Browse Source

fix: count_args

master
narnaud 3 years ago
parent
commit
cc03d20e51
  1. 4
      parser.c

4
parser.c

@ -6,7 +6,7 @@
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/02 16:09:25 by narnaud #+# #+# */
/* Updated: 2022/05/11 01:13:20 by narnaud@stude ### ########.fr */
/* Updated: 2022/05/11 13:53:47 by narnaud@stude ### ########.fr */
/* */
/* ************************************************************************** */
@ -43,7 +43,7 @@ static size_t count_arguments(t_token *tok)
size_t ret;
ret = 0;
while (tok && tok->type != PIPE)
while (tok && tok->type < PIPE)
{
if (tok->type == WORD)
ret++;

Loading…
Cancel
Save