summaryrefslogtreecommitdiffstats
path: root/src/m_funptr.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 16:56:23 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 16:56:23 +0200
commit0ab424df075f09aac376890a9a5a73cb74e053bf (patch)
tree7dab35480c6005f3bbc7ed864410bf04da9dd0bd /src/m_funptr.c
parentTODO update (diff)
download42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.gz
42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.bz2
42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.xz
42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.tar.zst
42-minishell-0ab424df075f09aac376890a9a5a73cb74e053bf.zip
alias in progress
Diffstat (limited to '')
-rw-r--r--src/m_funptr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/m_funptr.c b/src/m_funptr.c
index a6b31f2..1983e73 100644
--- a/src/m_funptr.c
+++ b/src/m_funptr.c
@@ -31,7 +31,8 @@ void
msh->bu_ptr[FT_ID_EXIT] = b_exit;
msh->bu_ptr[FT_ID_TYPE] = b_type;
msh->bu_ptr[FT_ID_SQB] = b_sqb;
- if (!(msh->bu_ref = ft_split(FT_BUILTINS, '|')))
+ msh->bu_ptr[FT_ID_ALIAS] = b_alias;
+ if ((msh->bu_ref = ft_split(FT_BUILTINS, '|')) == NULL)
{
f_alloc_and_destroy_msh(msh);
}