small changes

This commit is contained in:
Loic Deridder
2025-01-20 13:20:00 +01:00
parent ef8ba221e2
commit 81e0c7c4ee
4 changed files with 20 additions and 20 deletions

View File

@@ -25,5 +25,5 @@ int builtin_unset(char **arg, t_data *data)
{
if (count_var(arg) == 1)
return (err_msg_cmd("unset", NULL, "not enough arguments", EXIT_FAILURE));
return (remove_env_var(arg[1], data->env));
return (remove_env_var(arg[1], data));
}