[tracker/rss-enclosures] libtracker-client: Make direct check for NULL list.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-client: Make direct check for NULL list.
- Date: Mon, 3 May 2010 00:36:10 +0000 (UTC)
commit d9939762e7b11ad042d5c2b6b145cb3f1cec0f41
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]