fix: removed putendl on malloc
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
|
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2026/02/09 18:56:41 by sede-san #+# #+# */
|
/* Created: 2026/02/09 18:56:41 by sede-san #+# #+# */
|
||||||
/* Updated: 2026/02/10 08:51:42 by sede-san ### ########.fr */
|
/* Updated: 2026/02/10 08:53:56 by sede-san ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -104,7 +104,6 @@ static t_token *token_new(
|
|||||||
token = (t_token *)malloc(sizeof(t_token));
|
token = (t_token *)malloc(sizeof(t_token));
|
||||||
if (token == NULL)
|
if (token == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
ft_putendl("malloc");
|
|
||||||
token->type = type;
|
token->type = type;
|
||||||
token->value = text;
|
token->value = text;
|
||||||
if (token->type == TOKEN_WORD && token->value == NULL)
|
if (token->type == TOKEN_WORD && token->value == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user