mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 15:08:47 +02:00
「🔨」 fix: heredoc leak
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/09 17:24:15 by adjoly #+# #+# */
|
||||
/* Updated: 2024/08/05 23:11:27 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/08/10 17:53:25 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -31,6 +31,15 @@ t_list **get_list(t_list **list)
|
||||
return (ret);
|
||||
}
|
||||
|
||||
t_list **get_list2(t_list **list)
|
||||
{
|
||||
static t_list **ret;
|
||||
|
||||
if (list)
|
||||
ret = list;
|
||||
return (ret);
|
||||
}
|
||||
|
||||
void *get_void(void *in)
|
||||
{
|
||||
static void *ret;
|
||||
@ -55,12 +64,3 @@ int get_exit_code(int in)
|
||||
exit_code += 256;
|
||||
return (exit_code);
|
||||
}
|
||||
|
||||
int get_fd_heredoc(int in)
|
||||
{
|
||||
static int fd;
|
||||
|
||||
if (in != -1)
|
||||
fd = in;
|
||||
return (fd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user