Commit ed76dcfb authored by abenoit's avatar abenoit
Browse files

kicking i in check syntax

parent b711d2ed
......@@ -68,9 +68,9 @@ int check_syntax(char *line)
check_r_redir, check_l_redir, check_semicol,
check_pipe, check_space};
i = 0;
i = -1;
flags = S_EMPTY;
while (line[i++])
while (line[++i])
{
if (flags & S_BACKSL || flags & S_QUOTE || flags & S_DQUOTE)
state_modifiers(&flags, line[i]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment