summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-09-28 18:25:09 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-12-23 11:11:32 +0100
commit43dd1889c41286b0bce6dd3f1ff86716f9f79775 (patch)
treee6427e8a38fceafd121334c161dd3935bba1cdaf
parent0e3915c67150dfdbc17305ec39cbebb244e3f31c (diff)
downloadlibgdata-43dd1889c41286b0bce6dd3f1ff86716f9f79775.tar.gz
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
-rw-r--r--gdata/services/freebase/gdata-freebase-search-query.c2
1 files changed, 1 insertions, 1 deletions
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);