about summary refs log tree commit diff
path: root/posix/wordexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/wordexp.c')
-rw-r--r--posix/wordexp.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/posix/wordexp.c b/posix/wordexp.c
index dff5d30dad..0eb0721230 100644
--- a/posix/wordexp.c
+++ b/posix/wordexp.c
@@ -426,6 +426,7 @@ parse_glob (char **word, size_t *word_length, size_t *max_length,
 
       /* Sort out quoting */
       if (words[*offset] == '\'')
+	{
 	  if (quoted == 0)
 	    {
 	      quoted = 1;
@@ -436,17 +437,20 @@ parse_glob (char **word, size_t *word_length, size_t *max_length,
 	      quoted = 0;
 	      continue;
 	    }
+	}
       else if (words[*offset] == '"')
-	if (quoted == 0)
-	  {
-	    quoted = 2;
-	    continue;
-	  }
-	else if (quoted == 2)
-	  {
-	    quoted = 0;
-	    continue;
-	  }
+	{
+	  if (quoted == 0)
+	    {
+	      quoted = 2;
+	      continue;
+	    }
+	  else if (quoted == 2)
+	    {
+	      quoted = 0;
+	      continue;
+	    }
+	}
 
       /* Sort out other special characters */
       if (quoted != 1 && words[*offset] == '$')