[tracker/tracker-client-writeback] libtracker-client: Make direct check for NULL list.



commit f0ef510f726db923d2d370691f3bfb0fe93190f9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 15 14:17:41 2010 +0200

    libtracker-client: Make direct check for NULL list.

 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 be1e308..d6852e4 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -1465,7 +1465,7 @@ tracker_resources_writeback_connect (TrackerClient            *client,
 	private = TRACKER_CLIENT_GET_PRIVATE (client);
 
 	/* Connect the DBus signal if needed */
-	if (g_list_length (private->writeback_callbacks) == 0) {
+	if (!private->writeback_callbacks) {
 		dbus_g_proxy_connect_signal (private->proxy_resources,
 		                             "Writeback",
 		                             G_CALLBACK (writeback_cb),



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