[couchdb-glib] Use the correct JsonNode for email_addresses field traversal
- From: Rodrigo Moya <rodrigo src gnome org>
- To: svn-commits-list gnome org
- Subject: [couchdb-glib] Use the correct JsonNode for email_addresses field traversal
- Date: Fri, 19 Jun 2009 11:24:55 -0400 (EDT)
commit 3744bee34a9bf091a37022aad7c815da728938b6
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Fri Jun 19 17:24:40 2009 +0200
Use the correct JsonNode for email_addresses field traversal
couchdb-glib/couchdb-document-contact.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/couchdb-glib/couchdb-document-contact.c b/couchdb-glib/couchdb-document-contact.c
index f58591e..4c727c7 100644
--- a/couchdb-glib/couchdb-document-contact.c
+++ b/couchdb-glib/couchdb-document-contact.c
@@ -92,7 +92,8 @@ foreach_email_cb (JsonObject *object,
if (json_node_get_node_type (member_node) == JSON_NODE_OBJECT) {
CouchDBStructField *sf;
- sf = couchdb_struct_field_new_from_json_object (json_object_ref (object));
+ sf = couchdb_struct_field_new_from_json_object (
+ json_object_ref (json_node_get_object (member_node)));
*list = g_slist_prepend (*list, sf);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]