summaryrefslogtreecommitdiffstats
path: root/src/u_vars.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-30 20:30:58 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-30 20:30:58 +0200
commitc19bd35afdb45e49cebdfd96e7adb1e6fe477f0c (patch)
treec5a7655d5fa858da43b0c9e3f1f616d269aae172 /src/u_vars.c
parentWork in progress, freed leak (diff)
download42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.gz
42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.bz2
42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.xz
42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.zst
42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.zip
Double exit no more
Diffstat (limited to '')
-rw-r--r--src/u_vars.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/u_vars.c b/src/u_vars.c
index 377da77..a852d6f 100644
--- a/src/u_vars.c
+++ b/src/u_vars.c
@@ -30,7 +30,7 @@ static char
{
lcom_clear(&msh->curr);
s_destroy(msh);
- fail_alloc(msh);
+ f_fail_alloc(msh);
}
ft_memcpy((char*)rvarname, (const char*)varname + 1,
ft_strlen(varname + 1));
@@ -51,7 +51,7 @@ static char
ft_memdel((void*)&rvarname);
lcom_clear(&msh->curr);
s_destroy(msh);
- fail_alloc(msh);
+ f_fail_alloc(msh);
}
ft_memdel((void*)&rvarname);
return (varval);
@@ -95,7 +95,7 @@ static char
{
lcom_clear(&msh->curr);
s_destroy(msh);
- fail_alloc(msh);
+ f_fail_alloc(msh);
}
return (varval);
}
@@ -105,7 +105,7 @@ static char
{
lcom_clear(&msh->curr);
s_destroy(msh);
- fail_alloc(msh);
+ f_fail_alloc(msh);
}
return (varval);
}
@@ -131,7 +131,7 @@ static char
{
lcom_clear(&msh->curr);
s_destroy(msh);
- fail_alloc(msh);
+ f_fail_alloc(msh);
}
return (varval);
}