mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
「🔨」 fix: fixed conditional jump when heredoc in pipe TODO: leak 😭
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
# By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/01/22 07:21:18 by mmoussou #+# #+# #
|
||||
# Updated: 2024/07/29 19:27:29 by adjoly ### ########.fr #
|
||||
# Updated: 2024/08/01 17:48:26 by adjoly ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -14,7 +14,7 @@ SHELL = bash
|
||||
|
||||
CC = cc
|
||||
|
||||
CFLAGS = -Wall -Werror -Wextra -pipe -fPIE
|
||||
CFLAGS = -Wall -Werror -Wextra -pipe -fPIE -g
|
||||
|
||||
INCLUDE = ./include
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/08 21:44:04 by mmoussou #+# #+# */
|
||||
/* Updated: 2024/05/22 11:35:58 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/08/01 17:49:16 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -18,10 +18,11 @@ void ft_lstclear(t_list **lst, void (*del)(void *))
|
||||
|
||||
if (!lst || !del)
|
||||
return ;
|
||||
while (*lst && lst && del)
|
||||
while (lst && *lst && del)
|
||||
{
|
||||
tmp = (*lst)->next;
|
||||
ft_lstdelone(*lst, del);
|
||||
if ((*lst)->content)
|
||||
ft_lstdelone(*lst, del);
|
||||
*lst = tmp;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user