[libgdata] freebase: Fix thinko when creating compound GDataFreebaseTopicObjects



commit 460c79a61b727e21246b463c930d020aa1d482ec
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Sep 28 18:34:30 2014 +0200

    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

 .../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 b6badda..4b21bd7 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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]