From 0cdef64a5c9ba5cac3e67f379c26fc65f9251805 Mon Sep 17 00:00:00 2001 From: narnaud Date: Wed, 18 May 2022 15:55:30 +0200 Subject: [PATCH] fix save_var --- env.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])