summaryrefslogtreecommitdiffstats
path: root/src/p_lblock.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-09 18:29:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-09 18:29:25 +0200
commit42aa32df3f63d4dd1213b0683ab7110d788defef (patch)
tree80deb6980df13c903d3ed113abca0c33aa73d828 /src/p_lblock.c
parentPretty bav (diff)
download42-minishell-42aa32df3f63d4dd1213b0683ab7110d788defef.tar.gz
42-minishell-42aa32df3f63d4dd1213b0683ab7110d788defef.tar.bz2
42-minishell-42aa32df3f63d4dd1213b0683ab7110d788defef.tar.xz
42-minishell-42aa32df3f63d4dd1213b0683ab7110d788defef.tar.zst
42-minishell-42aa32df3f63d4dd1213b0683ab7110d788defef.zip
The more memory the better LOL
Diffstat (limited to 'src/p_lblock.c')
-rw-r--r--src/p_lblock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p_lblock.c b/src/p_lblock.c
index 856a546..377757d 100644
--- a/src/p_lblock.c
+++ b/src/p_lblock.c
@@ -133,13 +133,13 @@ int8_t
i = 0;
nextif = 0;
- if ((words = p_split_line(line)) == NULL)
+ if ((words = p_split_line((char*)line)) == NULL)
return (-1);
while (words[i] != NULL)
{
- if (words[i][ft_strlen(words[i]) - 1] == ';')
+ if (words[i][ft_strlen(words[i]) - 1] == '0')
nextif = 0;
- else if (words[i][ft_strlen(words[i]) - 1] == '&')
+ else if (words[i][ft_strlen(words[i]) - 1] == '1')
nextif = 1;
else
nextif = 2;