This commit is contained in:
Etienne Rey-bethbeder 2023-04-18 14:00:48 +02:00
parent 62e887cfbd
commit bd5e1671fc
2 changed files with 4 additions and 1 deletions

Binary file not shown.

5
env/env1.c vendored
View File

@ -6,7 +6,7 @@
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */ /* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/02 14:39:56 by erey-bet #+# #+# */ /* Created: 2023/02/02 14:39:56 by erey-bet #+# #+# */
/* Updated: 2023/04/18 12:47:08 by erey-bet ### ########.fr */ /* Updated: 2023/04/18 13:57:38 by erey-bet ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -78,7 +78,10 @@ int create_value_by_key(char *key, char *value, t_list **head)
t_env *content; t_env *content;
if (set_value_by_key(key, value, head) == 0) if (set_value_by_key(key, value, head) == 0)
{
free(key);
return (0); return (0);
}
content = ft_calloc(1, sizeof(t_env)); content = ft_calloc(1, sizeof(t_env));
if (content == NULL) if (content == NULL)
return (1); return (1);