[tracker/miner-rss-0.11-fixes: 5/5] tracker-miner-rss: Fixed ASK SPARQL to check true/false not 0/1



commit bdb89dfed52979e345c0bbc086d51702bd25c216
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Apr 28 11:02:01 2011 +0100

    tracker-miner-rss: Fixed ASK SPARQL to check true/false not 0/1

 src/miners/rss/tracker-miner-rss.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/rss/tracker-miner-rss.c b/src/miners/rss/tracker-miner-rss.c
index 6c48e61..fed8ae2 100644
--- a/src/miners/rss/tracker-miner-rss.c
+++ b/src/miners/rss/tracker-miner-rss.c
@@ -375,7 +375,7 @@ item_verify_reply_cb (GObject      *source_object,
 	}
 
 	str = tracker_sparql_cursor_get_string (cursor, 0, NULL);
-	if (g_strcmp0 (str, "1") == 0) {
+	if (str && g_ascii_strcasecmp (str, "true") == 0) {
 		g_object_unref (cursor);
 		return;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]