diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-09-21 21:05:12 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-09-21 21:05:12 +0100 |
commit | f661c7e1a04c2fb198279030c9dd812f357240a3 (patch) | |
tree | b581905adde1071572fff089be6b7259ad727903 /json-glib/json-parser.c | |
parent | ae3a66e6a90b6cfd71cb8c41c0d752fd1b0a67cc (diff) | |
download | json-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.
Diffstat (limited to 'json-glib/json-parser.c')
-rw-r--r-- | json-glib/json-parser.c | 2 |
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) |