diff --git a/src/parser/parser.c b/src/parser/parser.c index 6a5dbf2..73f9279 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -148,7 +148,7 @@ t_redirection *redirection_new( if (*tokens == NULL) { free(redirection); - return (syntax_error_unexpected_token(NULL), NULL); + return (syntax_error_unexpected_token(token), NULL); } token = (t_token *)(*tokens)->content; if (token->type != TOKEN_WORD)