[libgdata] freebase: reader_fill_object_gvalue() is only meant for "object" types
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] freebase: reader_fill_object_gvalue() is only meant for "object" types
- Date: Tue, 23 Dec 2014 10:16:56 +0000 (UTC)
commit c28a745ad8cbd4e22dccee1c2921e062f39b09db
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Sep 28 18:29:40 2014 +0200
freebase: reader_fill_object_gvalue() is only meant for "object" types
Compound types are only meant to be handled through
reader_fill_compound_gvalue(), which will iterate through its "property"
array. Otherwise, compound elements with an ID (which is not mandatory,
but ok for these to have) would be created as shallow objects instead
of containers of further objects/values.
https://bugzilla.gnome.org/show_bug.cgi?id=737539
.../freebase/gdata-freebase-topic-result.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/freebase/gdata-freebase-topic-result.c
b/gdata/services/freebase/gdata-freebase-topic-result.c
index 0426ce1..b6badda 100644
--- a/gdata/services/freebase/gdata-freebase-topic-result.c
+++ b/gdata/services/freebase/gdata-freebase-topic-result.c
@@ -346,7 +346,7 @@ reader_fill_object_gvalue (JsonReader *reader, TopicValueType type, GValue *valu
{
GDataFreebaseTopicObject *object;
- if (type != TYPE_OBJECT && type != TYPE_COMPOUND)
+ if (type != TYPE_OBJECT)
return FALSE;
object = reader_create_object (reader, type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]