[tracker/async-queries] libtracker-db: Drop extra row in async query results



commit 9cdd9f2aa212891e3ea4a2522f10db72b253515b
Author: Jürg Billeter <j bitron ch>
Date:   Wed Apr 14 10:24:13 2010 +0200

    libtracker-db: Drop extra row in async query results

 src/libtracker-db/tracker-db-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index cd224fe..458bfa6 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -1372,7 +1372,7 @@ interface_pool_dispatch_cb (gpointer data,
 		n_columns = tracker_db_cursor_get_n_columns (cursor);
 		result_set = _tracker_db_result_set_new (n_columns);
 
-		do {
+		while (tracker_db_cursor_iter_next (cursor)) {
 			GValue val = { 0 };
 
 			_tracker_db_result_set_append (result_set);
@@ -1395,7 +1395,7 @@ interface_pool_dispatch_cb (gpointer data,
 			    g_cancellable_is_cancelled (job->cancellable)) {
 				break;
 			}
-		} while (tracker_db_cursor_iter_next (cursor));
+		}
 
 		g_object_unref (cursor);
 



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