summaryrefslogtreecommitdiffstats
path: root/src/b_unset.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/b_unset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/b_unset.c b/src/b_unset.c
index c45d5ee..00fab78 100644
--- a/src/b_unset.c
+++ b/src/b_unset.c
@@ -58,7 +58,7 @@ static void
while (msh->envp[i] != NULL)
i++;
if (!(nenvp = (char**)malloc(i * sizeof(char*))))
- f_fail_alloc_and_destroy(msh);
+ f_alloc_and_destroy_msh(msh);
i = 0;
skipped = 0;
while (msh->envp[i] != NULL)
@@ -71,7 +71,7 @@ static void
skipped = 1;
}
if (!(nenvp[i - skipped] = ft_strdup(msh->envp[i])))
- f_fail_alloc_and_destroy(msh);
+ f_alloc_and_destroy_msh(msh);
i++;
}
nenvp[i - 1] = 0;