[libgdata] freebase: Fix typo in search query
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] freebase: Fix typo in search query
- Date: Tue, 23 Dec 2014 10:17:21 +0000 (UTC)
commit 43dd1889c41286b0bce6dd3f1ff86716f9f79775
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Sep 28 18:25:09 2014 +0200
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
.../freebase/gdata-freebase-search-query.c | 2 +-
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 affae23..4d6badb 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]