diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 18:19:52 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 18:19:52 +0200 |
commit | 16490a5e3d03b8fa75746c874c3c3855e6ce11b9 (patch) | |
tree | 1ce152e29ee05ad7e040bdd3fca924e1d4a9327e /src/ft_e_lcom.c | |
parent | Bug fix (diff) | |
download | 42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.gz 42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.bz2 42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.xz 42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.zst 42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.zip |
k
Diffstat (limited to '')
-rw-r--r-- | src/ft_e_lcom.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 6b01dc4..57998cb 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -39,13 +39,17 @@ void ptr = msh->curr; while (ptr != NULL) { - if ((bu_id = ft_get_builtin_id(ptr->com, msh)) < FT_BUILTINS_COUNT) + /* TODO: FIX THAT */ + if (ptr->com[0]) { - ft_e_builtin(ptr, bu_id, msh); - } - else - { - ft_e_extern(ptr, msh); + if ((bu_id = ft_get_builtin_id(ptr->com, msh)) < FT_BUILTINS_COUNT) + { + ft_e_builtin(ptr, bu_id, msh); + } + else + { + ft_e_extern(ptr, msh); + } } ptr = ptr->next; } |