summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-09-21 21:05:12 +0100
committerEmmanuele Bassi <ebassi@openedhand.com>2007-09-21 21:05:12 +0100
commitf661c7e1a04c2fb198279030c9dd812f357240a3 (patch)
treeb581905adde1071572fff089be6b7259ad727903
parentae3a66e6a90b6cfd71cb8c41c0d752fd1b0a67cc (diff)
downloadjson-glib-f661c7e1a04c2fb198279030c9dd812f357240a3.tar.gz
Skip the token check after parsing a nested array
Since there cannot be any other token except for the comma, which we eat anyway, there's no point in going through the switch() check after we have finished parsing a nested array.
-rw-r--r--json-glib/json-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/json-glib/json-parser.c b/json-glib/json-parser.c
index 71894d2..a97554a 100644
--- a/json-glib/json-parser.c
+++ b/json-glib/json-parser.c
@@ -178,6 +178,8 @@ json_parse_array (JsonParser *parser,
token = g_scanner_get_next_token (scanner);
if (token == G_TOKEN_RIGHT_BRACE)
break;
+
+ continue;
}
switch (token)