aboutsummaryrefslogtreecommitdiff
path: root/src/builtins_part_one.c
diff options
context:
space:
mode:
authorChristopher Uhlig2025-01-20 19:32:10 +0100
committerChristopher Uhlig2025-01-20 19:32:10 +0100
commit852e00cb465b05f13aa6298ce71a1067c0846556 (patch)
tree23407cd33e3dc255a9a4a6acb9d67a051ba80f65 /src/builtins_part_one.c
parentb73e9e4fda360885035b9b04e9e9aca4724cb285 (diff)
downloadminishell-852e00cb465b05f13aa6298ce71a1067c0846556.tar.gz
minishell-852e00cb465b05f13aa6298ce71a1067c0846556.zip
fixed norm tester 133 remove .vs
Diffstat (limited to 'src/builtins_part_one.c')
-rw-r--r--src/builtins_part_one.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/builtins_part_one.c b/src/builtins_part_one.c
index 629cc87..11989cc 100644
--- a/src/builtins_part_one.c
+++ b/src/builtins_part_one.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/09 17:01:16 by chuhlig #+# #+# */
-/* Updated: 2025/01/20 17:05:19 by chuhlig ### ########.fr */
+/* Updated: 2025/01/20 19:07:18 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -26,15 +26,7 @@ int unset(char **av, t_env **env)
prev = NULL;
while (current)
{
- if ((!ft_strcmp(current->name, av[i])) && (!ft_strcmp("?", av[1])))
- {
- if (prev)
- prev->next = current->next;
- else
- *env = current->next;
- free_env_node(current);
- break ;
- }
+ if (ft_strcmp(current->name, av[i]) == 0)
{
if (prev)
prev->next = current->next;