this should do it
This commit is contained in:
parent
1bd1b8404c
commit
8bb6c5d5fe
@ -6,7 +6,7 @@
|
||||
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/05 15:52:33 by whaffman #+# #+# */
|
||||
/* Updated: 2025/02/25 21:02:45 by qmennen ### ########.fr */
|
||||
/* Updated: 2025/02/25 21:17:06 by qmennen ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -22,7 +22,8 @@ int environment_parse(t_minishell *minishell, char **envp)
|
||||
while (*envp != NULL)
|
||||
{
|
||||
env = ft_split(*envp, '=');
|
||||
check_malloc(minishell, env);
|
||||
if (!env)
|
||||
return (FAILURE);
|
||||
environment_add(minishell, env[0], env[1]);
|
||||
ft_free_arr(env);
|
||||
envp++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user