[tracker] libtracker-miner: Fix typo in tracker_task_pool_foreach()



commit 750efe741e93b3e9a91368dc218585563af9d159
Author: Carlos Garnacho <carlos lanedo com>
Date:   Fri Jul 22 13:03:30 2011 +0200

    libtracker-miner: Fix typo in tracker_task_pool_foreach()
    
    Tasks are the value of the hashtable, not the key.

 src/libtracker-miner/tracker-task-pool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-task-pool.c b/src/libtracker-miner/tracker-task-pool.c
index 02a8b88..da4a627 100644
--- a/src/libtracker-miner/tracker-task-pool.c
+++ b/src/libtracker-miner/tracker-task-pool.c
@@ -265,7 +265,7 @@ tracker_task_pool_foreach (TrackerTaskPool *pool,
 	priv = pool->priv;
 	g_hash_table_iter_init (&iter, priv->tasks);
 
-	while (g_hash_table_iter_next (&iter, (gpointer *) &task, NULL)) {
+	while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &task)) {
 		(func) (task, user_data);
 	}
 }



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