[tracker] libtracker-extract: Lookup rules after maybe initializing in get_fallback_rdf_types()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-extract: Lookup rules after maybe initializing in get_fallback_rdf_types()
- Date: Fri, 14 Mar 2014 17:16:49 +0000 (UTC)
commit 5818f847c9868cb3511d8c11ab879936ae10441c
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 14 18:06:51 2014 +0100
libtracker-extract: Lookup rules after maybe initializing in get_fallback_rdf_types()
Otherwise the first lookup might come up empty.
src/libtracker-extract/tracker-module-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index 7cc1d21..de4237f 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -236,7 +236,7 @@ lookup_rules (const gchar *mimetype)
GStrv
tracker_extract_module_manager_get_fallback_rdf_types (const gchar *mimetype)
{
- GList *l, *list = lookup_rules (mimetype);
+ GList *l, *list;
GHashTable *rdf_types;
gchar **types, *type;
GHashTableIter iter;
@@ -247,6 +247,7 @@ tracker_extract_module_manager_get_fallback_rdf_types (const gchar *mimetype)
return NULL;
}
+ list = lookup_rules (mimetype);
rdf_types = g_hash_table_new (g_str_hash, g_str_equal);
for (l = list; l; l = l->next) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]