diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 20:42:41 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 20:42:41 +0200 |
commit | 638d89cbc030f5d187bf29ff2f3c135b3f3bfeca (patch) | |
tree | d7de1ae88e2cd68560a19dae00856841629b77c7 /src/ft_e_lcom.c | |
parent | k (diff) | |
download | 42-minishell-638d89cbc030f5d187bf29ff2f3c135b3f3bfeca.tar.gz 42-minishell-638d89cbc030f5d187bf29ff2f3c135b3f3bfeca.tar.bz2 42-minishell-638d89cbc030f5d187bf29ff2f3c135b3f3bfeca.tar.xz 42-minishell-638d89cbc030f5d187bf29ff2f3c135b3f3bfeca.tar.zst 42-minishell-638d89cbc030f5d187bf29ff2f3c135b3f3bfeca.zip |
Fixed segv on spaces only
Diffstat (limited to '')
-rw-r--r-- | src/ft_e_lcom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 57998cb..3288112 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -39,8 +39,7 @@ void ptr = msh->curr; while (ptr != NULL) { - /* TODO: FIX THAT */ - if (ptr->com[0]) + if (ptr->com) { if ((bu_id = ft_get_builtin_id(ptr->com, msh)) < FT_BUILTINS_COUNT) { |