summaryrefslogtreecommitdiffstats
path: root/src/p_args_quotes.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-04 23:13:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-04 23:13:05 +0200
commit14d5ccd7d4a20143bdf60fff6ed54ba8342d8e94 (patch)
tree21e2eda8c6f86a59feaf0ebdc0854dcfedc900c2 /src/p_args_quotes.c
parentgotta do stuff (diff)
download42-minishell-14d5ccd7d4a20143bdf60fff6ed54ba8342d8e94.tar.gz
42-minishell-14d5ccd7d4a20143bdf60fff6ed54ba8342d8e94.tar.bz2
42-minishell-14d5ccd7d4a20143bdf60fff6ed54ba8342d8e94.tar.xz
42-minishell-14d5ccd7d4a20143bdf60fff6ed54ba8342d8e94.tar.zst
42-minishell-14d5ccd7d4a20143bdf60fff6ed54ba8342d8e94.zip
REALLY
Diffstat (limited to '')
-rw-r--r--src/p_args_quotes.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/p_args_quotes.c b/src/p_args_quotes.c
index 24d39e7..a63ce38 100644
--- a/src/p_args_quotes.c
+++ b/src/p_args_quotes.c
@@ -47,18 +47,17 @@ static void
}
}
-WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
-
void
p_args_quotes(char *words[])
{
char **ptr;
+ char *dq_ptr;
+ char *sq_ptr;
ptr = words;
while (*ptr != NULL)
{
- if (**ptr == C_SQUOTE)
- p_arg_squotes(*ptr);
+ p_arg_squotes(*ptr);
else if (**ptr == C_DQUOTE)
p_arg_dquotes(*ptr);
ptr++;