[tracker/tracker-0.8] libtracker-db: Fix for last commit, || should be &&



commit b1018b8e64d659e96beb17a61749eb764b3b6a8d
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Apr 30 00:21:50 2010 +0200

    libtracker-db: Fix for last commit, || should be &&

 src/libtracker-db/tracker-db-interface-sqlite.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 2f48229..7d1b2d7 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -249,7 +249,7 @@ function_sparql_uri_is_parent (sqlite3_context *context,
 	 * be compared with the other anyway.
 	 */
 
-	if (!(parent_len >= 7 && (parent[4] == ':' || parent[5] == '/' || parent[6] == '/'))) {
+	if (!(parent_len >= 7 && (parent[4] == ':' && parent[5] == '/' && parent[6] == '/'))) {
 		if (strstr (parent, "://") == NULL) {
 			sqlite3_result_int (context, FALSE);
 			return;
@@ -321,7 +321,7 @@ function_sparql_uri_is_descendant (sqlite3_context *context,
 	 * be compared with the other anyway.
 	 */
 
-	if (!(parent_len >= 7 && (parent[4] == ':' || parent[5] == '/' || parent[6] == '/'))) {
+	if (!(parent_len >= 7 && (parent[4] == ':' && parent[5] == '/' && parent[6] == '/'))) {
 		if (strstr (parent, "://") == NULL) {
 			sqlite3_result_int (context, FALSE);
 			return;



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