[tracker/rss-enclosures] libtracker-db: Fix for last commit, || should be &&
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-db: Fix for last commit, || should be &&
- Date: Mon, 3 May 2010 00:48:27 +0000 (UTC)
commit fd830677566874e3444b5bfa61ca5592b1d5077a
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 507448c..6344aab 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -250,7 +250,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;
@@ -322,7 +322,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]