[tracker] Fixed FTS extractor in case no text is returned
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Fixed FTS extractor in case no text is returned
- Date: Wed, 9 Sep 2009 09:15:11 +0000 (UTC)
commit b287b00e1e437e8ab942cb4c206d428239cb4a8b
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Sep 9 11:14:06 2009 +0200
Fixed FTS extractor in case no text is returned
src/tracker-extract/tracker-extract-text.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-text.c b/src/tracker-extract/tracker-extract-text.c
index 963df72..9f3c2a9 100644
--- a/src/tracker-extract/tracker-extract-text.c
+++ b/src/tracker-extract/tracker-extract-text.c
@@ -283,11 +283,10 @@ extract_text (const gchar *uri,
g_type_init ();
- tracker_sparql_builder_subject_iri (metadata, uri);
-
content = get_file_content (uri);
if (content) {
+ tracker_sparql_builder_subject_iri (metadata, uri);
tracker_sparql_builder_predicate (metadata, "nie:plainTextContent");
tracker_sparql_builder_object_unvalidated (metadata, content);
g_free (content);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]