[tracker/tracker-0.10] libtracker-extract: Return TRUE in tracker_xmp_apply_regions() if no regions



commit 8d11bc7fb073ba05e4a49e951995ef3c9df45a32
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Sep 6 17:01:54 2011 +0100

    libtracker-extract: Return TRUE in tracker_xmp_apply_regions() if no regions

 src/libtracker-extract/tracker-xmp.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index 4bc6be3..0cc7611 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -1175,13 +1175,13 @@ tracker_xmp_apply_regions (TrackerSparqlBuilder *preupdate,
         GSList *iter;
         TrackerXmpRegion *region;
 
-	g_return_val_if_fail (TRACKER_SPARQL_IS_BUILDER (preupdate), FALSE);
-	g_return_val_if_fail (TRACKER_SPARQL_IS_BUILDER (preupdate), FALSE);
-	g_return_val_if_fail (uri != NULL, FALSE);
-	g_return_val_if_fail (data != NULL, FALSE);
+        g_return_val_if_fail (TRACKER_SPARQL_IS_BUILDER (preupdate), FALSE);
+        g_return_val_if_fail (TRACKER_SPARQL_IS_BUILDER (preupdate), FALSE);
+        g_return_val_if_fail (uri != NULL, FALSE);
+        g_return_val_if_fail (data != NULL, FALSE);
 
         if (!data->regions) {
-                return FALSE;
+                return TRUE;
         }
 
         for (iter = data->regions; iter != NULL; iter = iter->next) {



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