[tracker/dbus-fd-experiment] libtracker-client: Fixed warning for for tracker_result_iterator_next()



commit f0e9d0888b0f8a54bea2cf70f2d589d3f5f1a61c
Author: Martyn Russell <martyn lanedo com>
Date:   Wed Jun 23 10:09:23 2010 +0100

    libtracker-client: Fixed warning for for tracker_result_iterator_next()
    
    Was using g_return_if_fail() with no return value where one is expected

 src/libtracker-client/tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-client/tracker.c b/src/libtracker-client/tracker.c
index 0d426d5..d4d7c20 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -1990,7 +1990,7 @@ tracker_result_iterator_n_columns (TrackerResultIterator *iterator)
 gboolean
 tracker_result_iterator_next (TrackerResultIterator *iterator)
 {
-	g_return_if_fail (iterator != NULL);
+	g_return_val_if_fail (iterator != NULL, FALSE);
 
 #ifdef HAVE_DBUS_FD_PASSING
 	int last_offset;



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