Browse Source

fix save_var

master
narnaud 3 years ago
parent
commit
0cdef64a5c
  1. 4
      env.c

4
env.c

@ -6,7 +6,7 @@
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */ /* By: mea <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/16 09:41:29 by narnaud #+# #+# */ /* 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, '='); var = ft_split(argv, '=');
name_len = ft_strlen(var[0]); name_len = ft_strlen(var[0]);
if (!is_valid_identifier(var[1])) if (!is_valid_identifier(var[0]))
return (1); return (1);
i = 0; i = 0;
while (datas->envp[i]) while (datas->envp[i])

Loading…
Cancel
Save