[telepathy-glib-0.20] telepathy-glib: contact list C-example: fix iterating
Simon McVittie
smcv at kemper.freedesktop.org
Tue Apr 2 02:15:18 PDT 2013
Module: telepathy-glib
Branch: telepathy-glib-0.20
Commit: c7dab2d3c6936443fb4aee43f54defa81b5dc592
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=c7dab2d3c6936443fb4aee43f54defa81b5dc592
Author: Maksim Melnikau <maxposedon at gmail.com>
Date: Sun Mar 31 19:40:51 2013 +0300
contact list C-example: fix iterating
Signed-off-by: Maksim Melnikau <maxposedon at gmail.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=62968
Reviewed-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
---
examples/client/contact-list.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/examples/client/contact-list.c b/examples/client/contact-list.c
index 36b9734..5ed82a4 100644
--- a/examples/client/contact-list.c
+++ b/examples/client/contact-list.c
@@ -31,7 +31,7 @@ account_manager_prepared_cb (GObject *object,
accounts = tp_account_manager_dup_valid_accounts (manager);
for (l = accounts; l != NULL; l = l->next)
{
- TpAccount *account = accounts->data;
+ TpAccount *account = l->data;
TpConnection *connection = tp_account_get_connection (account);
GPtrArray *contacts;
guint i;
More information about the telepathy-commits
mailing list