aboutsummaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
authorChristopher Uhlig2024-10-17 15:48:50 +0200
committerChristopher Uhlig2024-10-17 15:48:50 +0200
commitd05140c9c6bacce28b37124fbda48ea3a39ac486 (patch)
treeef1fd437502ec1f4886e0b422405c6b805ddef73 /src/env.c
parente6e8051fbda53a75332e09f917e74d687f467a8a (diff)
downloadminishell-d05140c9c6bacce28b37124fbda48ea3a39ac486.tar.gz
minishell-d05140c9c6bacce28b37124fbda48ea3a39ac486.zip
fixed *tmp and added libft in env header
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.c b/src/env.c
index 8105bf4..c71b2cb 100644
--- a/src/env.c
+++ b/src/env.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/17 14:31:07 by chuhlig #+# #+# */
-/* Updated: 2024/10/17 15:18:44 by chuhlig ### ########.fr */
+/* Updated: 2024/10/17 15:47:11 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -22,7 +22,7 @@ void getenvlst(t_env **env, char **en)
while (en[i] != NULL)
{
tmp = ft_strchr(en[i], '=');
- tmp = '\0';
+ *tmp = '\0';
current = *env;
current = malloc(sizeof(t_env));
current->name = ft_strdup(en[i]);