From 43dd1889c41286b0bce6dd3f1ff86716f9f79775 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 28 Sep 2014 18:25:09 +0200 Subject: freebase: Fix typo in search query The string array matches the GDataFreebaseSearchFilterType, using the FilterNodeType was unintended, and TYPE_CONTAINER happened to match GDATA_FREEBASE_SEARCH_FILTER_ALL. https://bugzilla.gnome.org/show_bug.cgi?id=737541 --- gdata/services/freebase/gdata-freebase-search-query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdata/services/freebase/gdata-freebase-search-query.c b/gdata/services/freebase/gdata-freebase-search-query.c index affae23e..4d6badb4 100644 --- a/gdata/services/freebase/gdata-freebase-search-query.c +++ b/gdata/services/freebase/gdata-freebase-search-query.c @@ -228,7 +228,7 @@ build_filter_string (FilterNode *node, g_assert (/* node->container.filter_type >= 0 && */ node->container.filter_type < G_N_ELEMENTS (type_str)); - g_string_append_printf (str, "(%s", type_str[node->container.type]); + g_string_append_printf (str, "(%s", type_str[node->container.filter_type]); for (i = 0; i < node->container.child_nodes->len; i++) build_filter_string (g_ptr_array_index (node->container.child_nodes, i), str); -- cgit v1.2.1