summaryrefslogtreecommitdiffstats
path: root/src/m_loop_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-01 19:19:01 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-01 19:19:01 +0200
commit834e84e40b9a5e489ddcb1aef43f231ccdb3dfc2 (patch)
tree89ed9f0e836b7ee1d037c8e6c849aa06d515369e /src/m_loop_next.c
parentBetter, removed debug printf (diff)
download42-minishell-834e84e40b9a5e489ddcb1aef43f231ccdb3dfc2.tar.gz
42-minishell-834e84e40b9a5e489ddcb1aef43f231ccdb3dfc2.tar.bz2
42-minishell-834e84e40b9a5e489ddcb1aef43f231ccdb3dfc2.tar.xz
42-minishell-834e84e40b9a5e489ddcb1aef43f231ccdb3dfc2.tar.zst
42-minishell-834e84e40b9a5e489ddcb1aef43f231ccdb3dfc2.zip
Fine
Diffstat (limited to 'src/m_loop_next.c')
-rw-r--r--src/m_loop_next.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/m_loop_next.c b/src/m_loop_next.c
index d6c085e..1163a49 100644
--- a/src/m_loop_next.c
+++ b/src/m_loop_next.c
@@ -153,10 +153,7 @@ static void
{
if (*ptr == C_SQUOTE)
{
- if (*(ptr - 1) != C_BACKSLASH)
- q[0] += 1;
- else if (*(ptr - 2) == C_BACKSLASH)
- q[0] += 1;
+ q[0] += 1;
}
else if (*ptr == C_DQUOTE)
{