Fuck it, YOLO!

This commit is contained in:
2024-04-24 18:11:37 +02:00
parent 59ce849e26
commit 52174b8737
7 changed files with 42 additions and 34 deletions

View File

@ -6,18 +6,18 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/06 20:46:19 by tomoron #+# #+# */
/* Updated: 2024/04/24 15:36:12 by tomoron ### ########.fr */
/* Updated: 2024/04/24 18:04:15 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
t_token *token_add_back(t_token *token, char *value)
t_token *token_add_back(t_token *token, char *value, int is_var)
{
t_token *res;
t_token *current;
if (/*value && !*value*/0)
if (value && !*value && is_var)
{
free(value);
return (token);