diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-01 21:35:53 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-01 21:35:53 +0100 |
commit | 314f8f2c501322717c247fe512093a894244b702 (patch) | |
tree | 7542a204ffd719f639624f33cfa079063fc98e8c /src/b_type.c | |
parent | commit (diff) | |
download | 42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.gz 42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.bz2 42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.xz 42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.zst 42-minishell-314f8f2c501322717c247fe512093a894244b702.zip |
Merged shotgunfixes
Diffstat (limited to 'src/b_type.c')
-rw-r--r-- | src/b_type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/b_type.c b/src/b_type.c index 5904742..789071f 100644 --- a/src/b_type.c +++ b/src/b_type.c @@ -47,7 +47,7 @@ static char b_absolute_path_exists(char com[]) static void b_type_get_path(char fullpath[], char com[], t_msh *msh) { - if (ft_ischarset("/.", com[0]) == TRUE) + if (ft_strchr(com, '/') != NULL) { if (b_absolute_path_exists(com)) { |