diff options
Diffstat (limited to 'src/b_export.c')
-rw-r--r-- | src/b_export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/b_export.c b/src/b_export.c index 0b5dbf6..62dc64b 100644 --- a/src/b_export.c +++ b/src/b_export.c @@ -67,16 +67,16 @@ void while (msh->envp[i] != NULL) i++; if (!(nenvp = (char**)malloc((i + 2) * sizeof(char*)))) - f_fail_alloc_and_destroy(msh); + f_alloc_and_destroy_msh(msh); i = 0; while (msh->envp[i] != NULL) { if (!(nenvp[i] = ft_strdup(msh->envp[i]))) - f_fail_alloc_and_destroy(msh); + f_alloc_and_destroy_msh(msh); i++; } if (!(nenvp[i] = ft_strdup(var))) - f_fail_alloc_and_destroy(msh); + f_alloc_and_destroy_msh(msh); nenvp[i + 1] = 0; ft_delwords(msh->envp); lvars_delone(&msh->vars, varname); |