[tracker] tracker-extract: Bugfix for NB#166767, spaces aren't keyword separators
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Bugfix for NB#166767, spaces aren't keyword separators
- Date: Tue, 4 May 2010 17:59:03 +0000 (UTC)
commit 54083f8acc85ba83e4117f1ee1984686ab3b9072
Author: Philip Van Hoof <philip codeminded be>
Date: Tue May 4 19:55:37 2010 +0200
tracker-extract: Bugfix for NB#166767, spaces aren't keyword separators
src/libtracker-extract/tracker-xmp.c | 4 ++--
src/tracker-extract/tracker-extract-jpeg.c | 4 ++--
src/tracker-extract/tracker-extract-pdf.cpp | 4 ++--
src/tracker-extract/tracker-extract-png.c | 4 ++--
src/tracker-extract/tracker-extract-tiff.c | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index 018e453..ba1f3f9 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -629,9 +629,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
if (keywords[len - 1] == '"')
keywords[len - 1] = '\0';
- for (keyw = strtok_r (keywords, ",; ", &lasts);
+ for (keyw = strtok_r (keywords, ",;", &lasts);
keyw;
- keyw = strtok_r (NULL, ",; ", &lasts)) {
+ keyw = strtok_r (NULL, ",;", &lasts)) {
tracker_sparql_builder_predicate (metadata, "nao:hasTag");
tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c
index 15284be..0c530f3 100644
--- a/src/tracker-extract/tracker-extract-jpeg.c
+++ b/src/tracker-extract/tracker-extract-jpeg.c
@@ -111,9 +111,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
keywords[len - 1] = '\0';
}
- for (p = strtok_r (keywords, ",; ", &saveptr);
+ for (p = strtok_r (keywords, ",;", &saveptr);
p;
- p = strtok_r (NULL, ",; ", &saveptr)) {
+ p = strtok_r (NULL, ",;", &saveptr)) {
tracker_sparql_builder_predicate (metadata, "nao:hasTag");
tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-pdf.cpp b/src/tracker-extract/tracker-extract-pdf.cpp
index 05cfb47..b7a35be 100644
--- a/src/tracker-extract/tracker-extract-pdf.cpp
+++ b/src/tracker-extract/tracker-extract-pdf.cpp
@@ -272,9 +272,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
keywords[len - 1] = '\0';
}
- for (p = strtok_r (keywords, ",; ", &saveptr);
+ for (p = strtok_r (keywords, ",;", &saveptr);
p;
- p = strtok_r (NULL, ",; ", &saveptr)) {
+ p = strtok_r (NULL, ",;", &saveptr)) {
tracker_sparql_builder_predicate (metadata, "nao:hasTag");
tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index b79769f..b93180e 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -108,9 +108,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
keywords[len - 1] = '\0';
}
- for (keyw = strtok_r (keywords, ",; ", &lasts);
+ for (keyw = strtok_r (keywords, ",;", &lasts);
keyw;
- keyw = strtok_r (NULL, ",; ", &lasts)) {
+ keyw = strtok_r (NULL, ",;", &lasts)) {
tracker_sparql_builder_predicate (metadata, "nao:hasTag");
tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index e326c17..988ffc9 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -268,9 +268,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
if (keywords[len - 1] == '"')
keywords[len - 1] = '\0';
- for (keyw = strtok_r (keywords, ",; ", &lasts);
+ for (keyw = strtok_r (keywords, ",;", &lasts);
keyw;
- keyw = strtok_r (NULL, ",; ", &lasts)) {
+ keyw = strtok_r (NULL, ",;", &lasts)) {
tracker_sparql_builder_predicate (metadata, "nao:hasTag");
tracker_sparql_builder_object_blank_open (metadata);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]