[json-glib] parser: Advance when parsing bare values
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [json-glib] parser: Advance when parsing bare values
- Date: Thu, 29 Oct 2009 14:04:04 +0000 (UTC)
commit 026ea0357fbe95e2acd43555e3b5d00e329c9740
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Oct 29 13:59:44 2009 +0000
parser: Advance when parsing bare values
A missing get_next_token() prevents getting the contents of
the tokenizer in order to place them into the JsonNode.
json-glib/json-parser.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/json-glib/json-parser.c b/json-glib/json-parser.c
index 419f695..fe6cfe6 100644
--- a/json-glib/json-parser.c
+++ b/json-glib/json-parser.c
@@ -839,6 +839,7 @@ json_parse_statement (JsonParser *parser,
case G_TOKEN_INT:
case G_TOKEN_FLOAT:
case G_TOKEN_STRING:
+ json_scanner_get_next_token (scanner);
priv->root = priv->current_node = json_node_new (JSON_NODE_VALUE);
if (token == G_TOKEN_INT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]