summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-08 20:28:22 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-08 20:28:22 +0200
commit370f650446b966794e3a1ce973acb5b5f396aa83 (patch)
tree21b92f8fdd8599db9c61ee88c65dc68fbfe07e25
parentI hate myself and I want to die (diff)
download42-minishell-370f650446b966794e3a1ce973acb5b5f396aa83.tar.gz
42-minishell-370f650446b966794e3a1ce973acb5b5f396aa83.tar.bz2
42-minishell-370f650446b966794e3a1ce973acb5b5f396aa83.tar.xz
42-minishell-370f650446b966794e3a1ce973acb5b5f396aa83.tar.zst
42-minishell-370f650446b966794e3a1ce973acb5b5f396aa83.zip
In progress
-rw-r--r--src/p_split.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p_split.c b/src/p_split.c
index f3f3e27..7e2260d 100644
--- a/src/p_split.c
+++ b/src/p_split.c
@@ -164,6 +164,8 @@ static void
u_is_not_escaped(line, ptr) == TRUE)
{
sp.pos[sp.count] = (ptr - line);
+ sp.nextif[sp.count] = 0;
+ sp.count += 1;
}
}