diff --git a/env.c b/env.c index 54f66f9..c01fea3 100755 --- a/env.c +++ b/env.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/02/16 09:41:29 by narnaud #+# #+# */ -/* Updated: 2022/05/18 15:50:14 by narnaud@stude ### ########.fr */ +/* Updated: 2022/05/18 15:54:39 by narnaud@stude ### ########.fr */ /* */ /* ************************************************************************** */ @@ -72,7 +72,7 @@ int save_var(t_datas *datas, char *argv) var = ft_split(argv, '='); name_len = ft_strlen(var[0]); - if (!is_valid_identifier(var[1])) + if (!is_valid_identifier(var[0])) return (1); i = 0; while (datas->envp[i])