summaryrefslogtreecommitdiffstats
path: root/src/p_args_escape.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-06 18:25:02 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-06 18:25:02 +0200
commit9ed927a6d4fd26dcdc7c094a0001521f072d8ae4 (patch)
tree1ad8c70b67ccc85d9776f39768aaf28e24ffcf7b /src/p_args_escape.c
parentGitignore update (diff)
download42-minishell-9ed927a6d4fd26dcdc7c094a0001521f072d8ae4.tar.gz
42-minishell-9ed927a6d4fd26dcdc7c094a0001521f072d8ae4.tar.bz2
42-minishell-9ed927a6d4fd26dcdc7c094a0001521f072d8ae4.tar.xz
42-minishell-9ed927a6d4fd26dcdc7c094a0001521f072d8ae4.tar.zst
42-minishell-9ed927a6d4fd26dcdc7c094a0001521f072d8ae4.zip
Update
Diffstat (limited to 'src/p_args_escape.c')
-rw-r--r--src/p_args_escape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p_args_escape.c b/src/p_args_escape.c
index 834d9f7..ed319a1 100644
--- a/src/p_args_escape.c
+++ b/src/p_args_escape.c
@@ -108,7 +108,7 @@ static void
{
if (*ptr == C_SQUOTE)
mode = p_escape_squote(ptr, &ptr, word, mode);
- else if (*ptr == C_DQUOTE)
+ if (*ptr == C_DQUOTE)
mode = p_escape_dquote(ptr, &ptr, word, mode);
if (*ptr == C_BACKS)
p_escape_bs(ptr, &ptr, word, mode);