Compare commits
2 Commits
c493979a18
...
9d457f1040
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d457f1040 | |||
| 6b3d2ba5e0 |
@@ -148,7 +148,7 @@ t_redirection *redirection_new(
|
|||||||
if (*tokens == NULL)
|
if (*tokens == NULL)
|
||||||
{
|
{
|
||||||
free(redirection);
|
free(redirection);
|
||||||
return (syntax_error_unexpected_token(NULL), NULL);
|
return (syntax_error_unexpected_token(token), NULL);
|
||||||
}
|
}
|
||||||
token = (t_token *)(*tokens)->content;
|
token = (t_token *)(*tokens)->content;
|
||||||
if (token->type != TOKEN_WORD)
|
if (token->type != TOKEN_WORD)
|
||||||
@@ -266,7 +266,7 @@ void redirection_add(
|
|||||||
|
|
||||||
redirection = redirection_new(tokens);
|
redirection = redirection_new(tokens);
|
||||||
if (redirection == NULL)
|
if (redirection == NULL)
|
||||||
return;
|
return ;
|
||||||
redirection_tokens = ft_lstnew(redirection);
|
redirection_tokens = ft_lstnew(redirection);
|
||||||
if (redirection_tokens == NULL)
|
if (redirection_tokens == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user