summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-09-28 18:34:30 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-12-21 16:47:49 +0100
commit460c79a61b727e21246b463c930d020aa1d482ec (patch)
tree2288e9f12db0f4c19ab66bab04ba91e14c1a3010
parentc28a745ad8cbd4e22dccee1c2921e062f39b09db (diff)
downloadlibgdata-460c79a61b727e21246b463c930d020aa1d482ec.tar.gz
freebase: Fix thinko when creating compound GDataFreebaseTopicObjects
The check was actually inverted, receiving a newly created object is obviously the expected condition. This made the parsing of compound objects a lot more shallower than the received data. https://bugzilla.gnome.org/show_bug.cgi?id=737539
-rw-r--r--gdata/services/freebase/gdata-freebase-topic-result.c2
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 b6badda7..4b21bd72 100644
--- a/gdata/services/freebase/gdata-freebase-topic-result.c
+++ b/gdata/services/freebase/gdata-freebase-topic-result.c
@@ -369,7 +369,7 @@ reader_fill_compound_gvalue (JsonReader *reader, TopicValueType type, GValue *va
object = reader_create_object (reader, type);
- if (object != NULL)
+ if (object == NULL)
return FALSE;
json_reader_read_member (reader, "property");